summaryrefslogtreecommitdiff
path: root/Modules/CMakeDetermineRCCompiler.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-01-25 11:41:05 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2006-01-25 11:41:05 -0500
commitaa98e3647dff8cfc66f5ef4f93e044543c93b02a (patch)
tree7bc09ebd666025951a2cd5598c3df8e9ddb7b6e9 /Modules/CMakeDetermineRCCompiler.cmake
parent269b66d50aba8285f3ad7935141968dd33dcd820 (diff)
downloadcmake-aa98e3647dff8cfc66f5ef4f93e044543c93b02a.tar.gz
ENH: fix more than one argument passed in to compilers via environment
Diffstat (limited to 'Modules/CMakeDetermineRCCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineRCCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineRCCompiler.cmake b/Modules/CMakeDetermineRCCompiler.cmake
index b2c1cadbcb..c5732b27aa 100644
--- a/Modules/CMakeDetermineRCCompiler.cmake
+++ b/Modules/CMakeDetermineRCCompiler.cmake
@@ -10,7 +10,7 @@ IF(NOT CMAKE_RC_COMPILER)
IF($ENV{RC} MATCHES ".+")
GET_FILENAME_COMPONENT(CMAKE_RC_COMPILER_INIT $ENV{RC} PROGRAM PROGRAM_ARGS CMAKE_RC_FLAGS_ENV_INIT)
IF(CMAKE_RC_FLAGS_ENV_INIT)
- SET(CMAKE_RC_COMPILER_ARG1 ${CMAKE_RC_FLAGS_ENV_INIT} CACHE STRING "First argument to RC compiler")
+ SET(CMAKE_RC_COMPILER_ARG1 "${CMAKE_RC_FLAGS_ENV_INIT}" CACHE STRING "First argument to RC compiler")
ENDIF(CMAKE_RC_FLAGS_ENV_INIT)
IF(EXISTS ${CMAKE_RC_COMPILER_INIT})
ELSE(EXISTS ${CMAKE_RC_COMPILER_INIT})