summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-10-06 17:45:56 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-10-06 17:45:56 +0300
commitf58cbd728143f14633b9ad1f8adcdd74fce19980 (patch)
tree3f1050ea46794ea7bc254056517edec6990bd011
parentAdjust the font sizes of the welcome page (diff)
downloadnheko-f58cbd728143f14633b9ad1f8adcdd74fce19980.tar.xz
Remove debug logs from Windows builds
-rw-r--r--CMakeLists.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt

index 45134632..701e8610 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -122,10 +122,15 @@ else(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES)) message("Build type set to '${CMAKE_BUILD_TYPE}'") endif(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES)) -if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") - set(SPDLOG_DEBUG_ON true) -else() - set(SPDLOG_DEBUG_ON false) +set(SPDLOG_DEBUG_ON false) + +# Windows doesn't handle CMAKE_BUILD_TYPE. +if(NOT WIN32) + if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") + set(SPDLOG_DEBUG_ON true) + else() + set(SPDLOG_DEBUG_ON false) + endif() endif() find_program(GIT git)