diff options
| author | Petr Mrázek | 2012-02-13 17:43:41 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-02-13 17:43:41 +0100 |
| commit | f600928ec18ecd42b4f7130a7491dab741bb2389 (patch) | |
| tree | 6c9614a4b2b8a5fa13e24f521c2288957d1525b7 /CMakeLists.txt | |
| parent | 9163dda076c887de0dbcb4581b341450924a95de (diff) | |
| download | dfhack-f600928ec18ecd42b4f7130a7491dab741bb2389.tar.gz dfhack-f600928ec18ecd42b4f7130a7491dab741bb2389.tar.bz2 dfhack-f600928ec18ecd42b4f7130a7491dab741bb2389.tar.xz | |
Move catsplosion, tweak for build targets under MSVC.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cf8e4b2..d251b78e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,13 @@ # main project file. use it from a build sub-folder, see COMPILE for details -## setting the build type. -IF(NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "") - SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Release RelWithDebInfo.") -ENDIF() +# Set up build types +if(CMAKE_CONFIGURATION_TYPES) + SET(CMAKE_CONFIGURATION_TYPES "Release;RelWithDebInfo" CACHE STRING "Semicolon-separate list of supported configuration types" FORCE) +else(CMAKE_CONFIGURATION_TYPES) + if (NOT CMAKE_BUILD_TYPE) + SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Release RelWithDebInfo.") + endif (NOT CMAKE_BUILD_TYPE) +endif(CMAKE_CONFIGURATION_TYPES) ## some generic CMake magic cmake_minimum_required(VERSION 2.8 FATAL_ERROR) |
