Changeset 2908 for code/branches/questsystem5/cmake/FlagUtilities.cmake
- Timestamp:
- Apr 8, 2009, 12:58:47 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
r2907 r2908 54 54 ENDMACRO(SET_CACHE) 55 55 56 # Visual studio (esp. IntelliSense) doesn't like dashes to specify arguments57 # Always use foward slashes instead58 IF(MSVC)59 SET(ARGUMENT_STARTER "/")60 ELSE()61 SET(ARGUMENT_STARTER "-")62 ENDIF(MSVC)63 64 56 # Separates a string of flags. " -" or " /" denotes the start of a flag. 65 57 # The same sequence inside double quotation marks is ignored. … … 79 71 # Extract one flag if possible 80 72 SET(_flag) 81 STRING(REGEX REPLACE "^.* [/-](.+)( [/-].*$)" " ${ARGUMENT_STARTER}\\1" _flag "${_flag_string}")73 STRING(REGEX REPLACE "^.* [/-](.+)( [/-].*$)" "-\\1" _flag "${_flag_string}") 82 74 STRING(REGEX REPLACE "^.* [/-](.+)( [/-].*$)" "\\2" _flag_string "${_flag_string}") 83 75 IF(NOT _flag STREQUAL _flag_string)
Note: See TracChangeset
for help on using the changeset viewer.