mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-07 20:34:28 +08:00
Force -DNDEBUG on non-Debug CMake builds
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user