diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-12-06 15:16:21 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-12-06 15:16:21 (GMT) |
commit | b6cb67eaa9b8f7c12848bfaf2aea8c5eb9e7526e (patch) | |
tree | e2810e62e9c24d0dc5b0ff503f3c409ecf326d48 /Modules | |
parent | b3ca217a2323ece7bca802107f9476ec81cb1ef5 (diff) | |
download | CMake-b6cb67eaa9b8f7c12848bfaf2aea8c5eb9e7526e.zip CMake-b6cb67eaa9b8f7c12848bfaf2aea8c5eb9e7526e.tar.gz CMake-b6cb67eaa9b8f7c12848bfaf2aea8c5eb9e7526e.tar.bz2 |
BUG: fix C compiler init
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeDetermineCCompiler.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake index a60bd72..7c34f83 100644 --- a/Modules/CMakeDetermineCCompiler.cmake +++ b/Modules/CMakeDetermineCCompiler.cmake @@ -19,19 +19,19 @@ IF(NOT CMAKE_C_COMPILER) # next try prefer the compiler specified by the generator IF(CMAKE_GENERATOR_CC) - IF(NOT CMAKE_CC_COMPILER_INIT) - SET(CMAKE_CC_COMPILER_INIT ${CMAKE_GENERATOR_CC}) - ENDIF(NOT CMAKE_CC_COMPILER_INIT) + IF(NOT CMAKE_C_COMPILER_INIT) + SET(CMAKE_C_COMPILER_INIT ${CMAKE_GENERATOR_CC}) + ENDIF(NOT CMAKE_C_COMPILER_INIT) ENDIF(CMAKE_GENERATOR_CC) # if no compiler has been specified yet, then look for one - IF(NOT CMAKE_CC_COMPILER_INIT) + IF(NOT CMAKE_C_COMPILER_INIT) # if not in the envionment then search for the compiler in the path SET(CMAKE_C_COMPILER_LIST gcc cc cl bcc ) FIND_PROGRAM(CMAKE_C_COMPILER_FULLPATH NAMES ${CMAKE_C_COMPILER_LIST} ) GET_FILENAME_COMPONENT(CMAKE_C_COMPILER_INIT ${CMAKE_C_COMPILER_FULLPATH} NAME) - ENDIF(NOT CMAKE_CC_COMPILER_INIT) + ENDIF(NOT CMAKE_C_COMPILER_INIT) SET(CMAKE_C_COMPILER ${CMAKE_C_COMPILER_INIT} CACHE STRING "C compiler") ENDIF(NOT CMAKE_C_COMPILER) |