summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeRCInformation.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-07-05 15:29:17 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-07-05 15:29:17 (GMT)
commit909048e5342fa6369ae26470ee0ce82e2a62abfb (patch)
tree414bcf06f074715e5540202adf8246cb76b3880c /Modules/CMakeRCInformation.cmake
parentd169b139751693f2c4e97f131b8d8cf7f4efca54 (diff)
parent3643390d49b567214f9008091aa0e1f4ebe7782a (diff)
downloadCMake-909048e5342fa6369ae26470ee0ce82e2a62abfb.zip
CMake-909048e5342fa6369ae26470ee0ce82e2a62abfb.tar.gz
CMake-909048e5342fa6369ae26470ee0ce82e2a62abfb.tar.bz2
Merge topic 'strip-flag-whitespace'
3643390d Strip CMAKE_<LANG>_FLAGS[_<CONFIG>] initializer whitespace
Diffstat (limited to 'Modules/CMakeRCInformation.cmake')
-rw-r--r--Modules/CMakeRCInformation.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeRCInformation.cmake b/Modules/CMakeRCInformation.cmake
index 94abd4b..60276e2 100644
--- a/Modules/CMakeRCInformation.cmake
+++ b/Modules/CMakeRCInformation.cmake
@@ -28,9 +28,9 @@ set(CMAKE_SYSTEM_AND_RC_COMPILER_INFO_FILE
${CMAKE_ROOT}/Modules/Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}.cmake)
include(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)
+string(STRIP "$ENV{RCFLAGS} ${CMAKE_RC_FLAGS_INIT}" CMAKE_RC_FLAGS_INIT)
-
-set (CMAKE_RC_FLAGS "$ENV{RCFLAGS} ${CMAKE_RC_FLAGS_INIT}" CACHE STRING
+set (CMAKE_RC_FLAGS "${CMAKE_RC_FLAGS_INIT}" CACHE STRING
"Flags for Windows Resource Compiler.")
# These are the only types of flags that should be passed to the rc