diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk index 1037513e97..6c9955d243 100644 --- a/package/pkg-cmake.mk +++ b/package/pkg-cmake.mk @@ -22,13 +22,13 @@ # Set compiler variables. ifeq ($(BR2_CCACHE),y) -CMAKE_HOST_C_COMPILER="$(HOST_DIR)/usr/bin/ccache" -CMAKE_HOST_CXX_COMPILER="$(HOST_DIR)/usr/bin/ccache" -CMAKE_HOST_C_COMPILER_ARG1="$(HOSTCC_NOCCACHE)" -CMAKE_HOST_CXX_COMPILER_ARG1="$(HOSTCXX_NOCCACHE)" +CMAKE_HOST_C_COMPILER = $(HOST_DIR)/usr/bin/ccache +CMAKE_HOST_CXX_COMPILER = $(HOST_DIR)/usr/bin/ccache +CMAKE_HOST_C_COMPILER_ARG1 = $(HOSTCC_NOCCACHE) +CMAKE_HOST_CXX_COMPILER_ARG1 = $(HOSTCXX_NOCCACHE) else -CMAKE_HOST_C_COMPILER="$$(HOSTCC)" -CMAKE_HOST_CXX_COMPILER="$$(HOSTCXX)" +CMAKE_HOST_C_COMPILER = $(HOSTCC) +CMAKE_HOST_CXX_COMPILER = $(HOSTCXX) endif ################################################################################