Commit 7e0c8c69 authored by Samuel Debionne's avatar Samuel Debionne Committed by operator for beamline

Use target_compile_defintions for LIMA_NO_DEBUG to make sure it is defined...

Use target_compile_defintions for LIMA_NO_DEBUG to make sure it is defined (transitive) for dowstream projects.
parent 8935358a
......@@ -263,6 +263,11 @@ if(LIMA_ENABLE_SPS_IMAGE)
target_include_directories(limacore PRIVATE "${CMAKE_SOURCE_DIR}/third-party/Sps/Include")
endif()
# Set LIMA_NO_DEBUG if the build type is not debug
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_definitions(limacore PUBLIC LIMA_NO_DEBUG)
endif()
# add all include paths coming from saving format options
target_include_directories(limacore PRIVATE ${extra_includes} ${saving_includes})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment