diff options
author | Jacek Antonelli | 2011-05-21 01:59:26 -0500 |
---|---|---|
committer | Jacek Antonelli | 2011-05-21 01:59:26 -0500 |
commit | fc2a53043a9b2fd59b71ab1f8c40a18421771eb7 (patch) | |
tree | c565080f701db0926e9f5807ebaa008c72f79d8f /linden/indra | |
parent | Ported Mac packaging system from Kokua. (diff) | |
download | meta-impy-fc2a53043a9b2fd59b71ab1f8c40a18421771eb7.zip meta-impy-fc2a53043a9b2fd59b71ab1f8c40a18421771eb7.tar.gz meta-impy-fc2a53043a9b2fd59b71ab1f8c40a18421771eb7.tar.bz2 meta-impy-fc2a53043a9b2fd59b71ab1f8c40a18421771eb7.tar.xz |
Coax Xcode into selecting the right build type by default.
This is accomplished by dynamically reordering the CMake variable
CMAKE_CONFIGURATION_TYPES so that the current build type (the value
of CMAKE_BUILD_TYPE) is listed first.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/cmake/00-Common.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index 7e85ce0..1a24a41 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake | |||
@@ -14,10 +14,13 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO | |||
14 | "-DLL_RELEASE=1 -D_SECURE_SCL=0 -DLL_SEND_CRASH_REPORTS=0 -DNDEBUG -DLL_RELEASE_WITH_DEBUG_INFO=1") | 14 | "-DLL_RELEASE=1 -D_SECURE_SCL=0 -DLL_SEND_CRASH_REPORTS=0 -DNDEBUG -DLL_RELEASE_WITH_DEBUG_INFO=1") |
15 | 15 | ||
16 | 16 | ||
17 | # Don't bother with a MinSizeRel build. | 17 | # Available build types / configurations. |
18 | # Add our current build type first, to coax Xcode into selecting it by default. | ||
18 | 19 | ||
19 | set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release;Debug" CACHE STRING | 20 | set(TYPES ${CMAKE_BUILD_TYPE} RelWithDebInfo Release Debug) |
20 | "Supported build types." FORCE) | 21 | list(REMOVE_DUPLICATES TYPES) |
22 | set(CMAKE_CONFIGURATION_TYPES ${TYPES} CACHE STRING "Supported build types." FORCE) | ||
23 | unset(TYPES) | ||
21 | 24 | ||
22 | 25 | ||
23 | # Determine the number of bits of this processor | 26 | # Determine the number of bits of this processor |