summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCCompiler.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-26 17:00:42 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-06-26 17:00:42 (GMT)
commit5fb7dab5416a3444cae09f857794cca5e312b09f (patch)
tree474ee7228c3ee9d0f61a54806c60cba4850c813c /Modules/CMakeDetermineCCompiler.cmake
parent2b1ae3145348167139bfdb9ccde112e48389a3ec (diff)
downloadCMake-5fb7dab5416a3444cae09f857794cca5e312b09f.zip
CMake-5fb7dab5416a3444cae09f857794cca5e312b09f.tar.gz
CMake-5fb7dab5416a3444cae09f857794cca5e312b09f.tar.bz2
ENH: check for CMAKE_HOST_SYSTEM_NAME to decide whether to load
CMakeDetermineSystem.cmake, since CMAKE_SYSTEM_NAME might already be preset when using cmake for cross compiling use type STRING instead of FILEPATH since otherwise a strange filename was generated Alex
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineCCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake
index 720853b..355a1fe 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -75,7 +75,7 @@ ELSE(NOT CMAKE_C_COMPILER)
FIND_PROGRAM(CMAKE_C_COMPILER_WITH_PATH NAMES ${CMAKE_C_COMPILER})
MARK_AS_ADVANCED(CMAKE_C_COMPILER_WITH_PATH)
IF(CMAKE_C_COMPILER_WITH_PATH)
- SET(CMAKE_C_COMPILER ${CMAKE_C_COMPILER_WITH_PATH} CACHE FILEPATH "C compiler" FORCE)
+ SET(CMAKE_C_COMPILER ${CMAKE_C_COMPILER_WITH_PATH} CACHE STRING "C compiler" FORCE)
ENDIF(CMAKE_C_COMPILER_WITH_PATH)
ENDIF(NOT _CMAKE_USER_C_COMPILER_PATH)
ENDIF(NOT CMAKE_C_COMPILER)