Changeset 2792
- Timestamp:
- Mar 16, 2009, 10:42:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/FlagUtilities.cmake
r2710 r2792 54 54 ENDMACRO(SET_CACHE) 55 55 56 # Visual studio (esp. IntelliSense) doesn't like dashes to specify arguments 57 # Always use foward slashes instead 58 IF(MSVC) 59 SET(ARGUMENT_STARTER "/") 60 ELSE() 61 SET(ARGUMENT_STARTER "-") 62 ENDIF(MSVC) 63 56 64 # Separates a string of flags. " -" or " /" denotes the start of a flag. 57 65 # The same sequence inside double quotation marks is ignored. … … 71 79 # Extract one flag if possible 72 80 SET(_flag) 73 STRING(REGEX REPLACE "^.* [/-](.+)( [/-].*$)" " -\\1" _flag "${_flag_string}")81 STRING(REGEX REPLACE "^.* [/-](.+)( [/-].*$)" "${ARGUMENT_STARTER}\\1" _flag "${_flag_string}") 74 82 STRING(REGEX REPLACE "^.* [/-](.+)( [/-].*$)" "\\2" _flag_string "${_flag_string}") 75 83 IF(NOT _flag STREQUAL _flag_string)
Note: See TracChangeset
for help on using the changeset viewer.