diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-01-25 16:41:05 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-01-25 16:41:05 (GMT) |
commit | aa98e3647dff8cfc66f5ef4f93e044543c93b02a (patch) | |
tree | 7bc09ebd666025951a2cd5598c3df8e9ddb7b6e9 /Modules/CMakeDetermineCCompiler.cmake | |
parent | 269b66d50aba8285f3ad7935141968dd33dcd820 (diff) | |
download | CMake-aa98e3647dff8cfc66f5ef4f93e044543c93b02a.zip CMake-aa98e3647dff8cfc66f5ef4f93e044543c93b02a.tar.gz CMake-aa98e3647dff8cfc66f5ef4f93e044543c93b02a.tar.bz2 |
ENH: fix more than one argument passed in to compilers via environment
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCCompiler.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake index 82b7c62..cd74194 100644 --- a/Modules/CMakeDetermineCCompiler.cmake +++ b/Modules/CMakeDetermineCCompiler.cmake @@ -13,7 +13,7 @@ IF(NOT CMAKE_C_COMPILER) IF($ENV{CC} MATCHES ".+") GET_FILENAME_COMPONENT(CMAKE_C_COMPILER_INIT $ENV{CC} PROGRAM PROGRAM_ARGS CMAKE_C_FLAGS_ENV_INIT) IF(CMAKE_C_FLAGS_ENV_INIT) - SET(CMAKE_C_COMPILER_ARG1 ${CMAKE_C_FLAGS_ENV_INIT} CACHE STRING "First argument to C compiler") + SET(CMAKE_C_COMPILER_ARG1 "${CMAKE_C_FLAGS_ENV_INIT}" CACHE STRING "First argument to C compiler") ENDIF(CMAKE_C_FLAGS_ENV_INIT) IF(EXISTS ${CMAKE_C_COMPILER_INIT}) ELSE(EXISTS ${CMAKE_C_COMPILER_INIT}) |