mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Remove debug logs from Windows builds
This commit is contained in:
parent
748c5898be
commit
f58cbd7281
1 changed files with 9 additions and 4 deletions
|
@ -122,11 +122,16 @@ else(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES))
|
||||||
message("Build type set to '${CMAKE_BUILD_TYPE}'")
|
message("Build type set to '${CMAKE_BUILD_TYPE}'")
|
||||||
endif(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES))
|
endif(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES))
|
||||||
|
|
||||||
|
set(SPDLOG_DEBUG_ON false)
|
||||||
|
|
||||||
|
# Windows doesn't handle CMAKE_BUILD_TYPE.
|
||||||
|
if(NOT WIN32)
|
||||||
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||||
set(SPDLOG_DEBUG_ON true)
|
set(SPDLOG_DEBUG_ON true)
|
||||||
else()
|
else()
|
||||||
set(SPDLOG_DEBUG_ON false)
|
set(SPDLOG_DEBUG_ON false)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
find_program(GIT git)
|
find_program(GIT git)
|
||||||
if(GIT)
|
if(GIT)
|
||||||
|
|
Loading…
Reference in a new issue