Skip to content
Snippets Groups Projects
Commit 44fe547b authored by Niccolò Betto's avatar Niccolò Betto
Browse files

[CMake] Add missing NDEBUG macro definitions for Release builds

parent 5835d1f5
No related branches found
No related tags found
No related merge requests found
......@@ -152,6 +152,8 @@ function(add_boardcore_library BOARD_OPTIONS_FILE)
# Define DEBUG when in Debug mode
target_compile_definitions(${BOARDCORE_LIB} PUBLIC $<$<CONFIG:Debug>:DEBUG>)
# Define NDEBUG when not in Debug mode
target_compile_definitions(${BOARDCORE_LIB} PUBLIC $<$<NOT:$<CONFIG:Debug>>:NDEBUG>)
# Link libraries
target_link_libraries(${BOARDCORE_LIB} PUBLIC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment