summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeRCInformation.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-07-01 17:52:10 (GMT)
committerBrad King <brad.king@kitware.com>2016-07-01 18:01:41 (GMT)
commit3643390d49b567214f9008091aa0e1f4ebe7782a (patch)
treee310832801d5fa8af2e33601391685a3b753669c /Modules/CMakeRCInformation.cmake
parent4c476cc9b2441f7cf36fd87c7c7338c373905678 (diff)
downloadCMake-3643390d49b567214f9008091aa0e1f4ebe7782a.zip
CMake-3643390d49b567214f9008091aa0e1f4ebe7782a.tar.gz
CMake-3643390d49b567214f9008091aa0e1f4ebe7782a.tar.bz2
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