summaryrefslogtreecommitdiff
path: root/Modules/CMakeRCInformation.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-04-22 11:10:19 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2008-04-22 11:10:19 -0400
commit7f5446b2ef54e82c10a45229b2cf980a7e731bf8 (patch)
tree8d9563b50ae274394f0ac5578f5297f0c9bdebcb /Modules/CMakeRCInformation.cmake
parent7e5921eff4761c0a122e1ac4488c41345fc2ec38 (diff)
downloadcmake-7f5446b2ef54e82c10a45229b2cf980a7e731bf8.tar.gz
BUG: fix for bug 6834 RC should not get all COMPILE_FLAGS from a target and should work the same way as it does in the vs ide
Diffstat (limited to 'Modules/CMakeRCInformation.cmake')
-rw-r--r--Modules/CMakeRCInformation.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/CMakeRCInformation.cmake b/Modules/CMakeRCInformation.cmake
index efc73846f4..dcef7ee1b5 100644
--- a/Modules/CMakeRCInformation.cmake
+++ b/Modules/CMakeRCInformation.cmake
@@ -12,7 +12,10 @@ INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)
SET (CMAKE_RC_FLAGS "$ENV{RCFLAGS} ${CMAKE_RC_FLAGS_INIT}" CACHE STRING
"Flags for Fortran compiler.")
-
+# These are the only types of flags that should be passed to the rc
+# command, if COMPILE_FLAGS is used on a target this will be used
+# to filter out any other flags
+SET(CMAKE_RC_FLAG_REGEX "^[-/](D|I)")
# now define the following rule variables
# CMAKE_RC_COMPILE_OBJECT