Changeset 8368 for code/trunk/cmake/tools
- Timestamp:
- May 1, 2011, 3:09:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/tools/FlagUtilities.cmake
r7163 r8368 22 22 # Description: 23 23 # Sets the compiler/linker flags. After the flags you can specify more args: 24 # Release, Debug, RelWithDebInfo, MinSizeRel : Build configs (inclusive)24 # Release, Debug, RelWithDebInfo, MinSizeRel, RelForDevs: Build configs 25 25 # ReleaseAll: Sets the flags of all three release builds 26 26 # CACHE: Values are witten with SET_CACHE_ADVANCED … … 36 36 # REMOVE_COMPILER_FLAGS("/Gm "asdf" -q"test -foo" CXX ReleaseAll NOT UNIX) 37 37 # This will only remove the CXX (C++) flags on a non Unix system for the 38 # Release, RelWithDebInfo and MinSizeRel configurations. The macros should39 # be able to cope with "test -foo" as string argument for a flag.38 # Release, RelWithDebInfo, MinSizeRel, RelForDevs configurations. The macros 39 # should be able to cope with "test -foo" as string argument for a flag. 40 40 # 41 41 … … 89 89 IF(_arg MATCHES "${_key_regex}") 90 90 LIST(APPEND _langs "${_arg}") 91 ELSEIF( _arg MATCHES "^(Debug|Release|MinSizeRel|RelWithDebInfo )$"92 OR _arg MATCHES "^(DEBUG|RELEASE|MINSIZEREL|RELWITHDEBINFO )$")91 ELSEIF( _arg MATCHES "^(Debug|Release|MinSizeRel|RelWithDebInfo|RelForDevs)$" 92 OR _arg MATCHES "^(DEBUG|RELEASE|MINSIZEREL|RELWITHDEBINFO|RelForDevs)$") 93 93 STRING(TOUPPER "${_arg}" _upper_arg) 94 94 LIST(APPEND _build_types ${_upper_arg}) 95 95 ELSEIF(_arg STREQUAL "ReleaseAll") 96 LIST(APPEND _build_types RELEASE MINSIZEREL RELWITHDEBINFO )96 LIST(APPEND _build_types RELEASE MINSIZEREL RELWITHDEBINFO RELFORDEVS) 97 97 ELSEIF(_arg STREQUAL "CACHE") 98 98 SET(_write_to_cache TRUE)
Note: See TracChangeset
for help on using the changeset viewer.