Changeset 2907 for code/branches/questsystem5/cmake/FlagUtilities.cmake
- Timestamp:
- Apr 8, 2009, 12:36:08 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/cmake/FlagUtilities.cmake
r2710 r2907 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.