diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-02-14 15:40:00 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-02-14 15:40:00 (GMT) |
commit | d9a74e1b1e18156be224697383b571ad9af4336c (patch) | |
tree | 2ec8af2a2f23a3932f7912a2c9f56f565eba3b09 /Modules/CMakeDetermineCCompiler.cmake | |
parent | ae5a80c7958c28dd273631f6869b05db599852b7 (diff) | |
download | CMake-d9a74e1b1e18156be224697383b571ad9af4336c.zip CMake-d9a74e1b1e18156be224697383b571ad9af4336c.tar.gz CMake-d9a74e1b1e18156be224697383b571ad9af4336c.tar.bz2 |
ENH: move full path compiler to internal and not just advanced
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCCompiler.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake index 6c7d4c7..73cd665 100644 --- a/Modules/CMakeDetermineCCompiler.cmake +++ b/Modules/CMakeDetermineCCompiler.cmake @@ -31,6 +31,7 @@ IF(NOT CMAKE_C_COMPILER) FIND_PROGRAM(CMAKE_C_COMPILER_FULLPATH NAMES ${CMAKE_C_COMPILER_LIST} ) GET_FILENAME_COMPONENT(CMAKE_C_COMPILER_INIT ${CMAKE_C_COMPILER_FULLPATH} NAME) + SET(CMAKE_C_COMPILER_FULLPATH "${CMAKE_C_COMPILER_FULLPATH}" CACHE INTERNAL "full path to the compiler cmake found") ENDIF(NOT CMAKE_C_COMPILER_INIT) SET(CMAKE_C_COMPILER ${CMAKE_C_COMPILER_INIT} CACHE STRING "C compiler") @@ -57,4 +58,4 @@ ENDIF(NOT CMAKE_COMPILER_RETURN) # configure variables set in this file for fast reload later on CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeCCompiler.cmake.in ${CMAKE_BINARY_DIR}/CMakeCCompiler.cmake IMMEDIATE) -MARK_AS_ADVANCED(CMAKE_AR CMAKE_C_COMPILER_FULLPATH) +MARK_AS_ADVANCED(CMAKE_AR) |