Force -DNDEBUG on non-Debug CMake builds

This commit is contained in:
Andrew Nelless 2017-04-27 17:01:54 +01:00
parent 242f1e7e29
commit fe117db525
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions (-DNDEBUG)
endif()
#
# Version
#