diff options
author | worktycho <work.tycho@gmail.com> | 2014-05-28 12:49:36 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-05-28 12:49:36 +0200 |
commit | 5a9e49fbeb582e47df7359d351fe952dcb0f536b (patch) | |
tree | b02f292e12f52577bee8cd92238aa82e53c50d46 /SetFlags.cmake | |
parent | Fixed test globals to work with precompiled headers (diff) | |
download | cuberite-5a9e49fbeb582e47df7359d351fe952dcb0f536b.tar cuberite-5a9e49fbeb582e47df7359d351fe952dcb0f536b.tar.gz cuberite-5a9e49fbeb582e47df7359d351fe952dcb0f536b.tar.bz2 cuberite-5a9e49fbeb582e47df7359d351fe952dcb0f536b.tar.lz cuberite-5a9e49fbeb582e47df7359d351fe952dcb0f536b.tar.xz cuberite-5a9e49fbeb582e47df7359d351fe952dcb0f536b.tar.zst cuberite-5a9e49fbeb582e47df7359d351fe952dcb0f536b.zip |
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r-- | SetFlags.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake index d9d0409e2..6e2417a51 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -184,7 +184,11 @@ macro(enable_profile) CMAKE_EXE_LINKER_FLAGS_RELEASEPROFILE CMAKE_SHARED_LINKER_FLAGS_RELEASEPROFILE ) # The configuration types need to be set after their respective c/cxx/linker flags and before the project directive - set(CMAKE_CONFIGURATION_TYPES "Debug;Release;DebugProfile;ReleaseProfile;Coverage" CACHE STRING "" FORCE) + if(MSVC) + set(CMAKE_CONFIGURATION_TYPES "Debug;Release;DebugProfile;ReleaseProfile" CACHE STRING "" FORCE) + else() + set(CMAKE_CONFIGURATION_TYPES "Debug;Release;DebugProfile;ReleaseProfile;Coverage" CACHE STRING "" FORCE) + endif() endmacro() macro(set_exe_flags) |