mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-19 18:47:13 +02:00
only add as compile definition if set
This commit is contained in:
@ -414,16 +414,16 @@ target_link_libraries(
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_definitions(aare_core PUBLIC AARE_VERBOSE)
|
|
||||||
|
|
||||||
if(AARE_VERBOSE)
|
if(AARE_VERBOSE)
|
||||||
|
target_compile_definitions(aare_core PUBLIC AARE_VERBOSE)
|
||||||
target_compile_definitions(aare_core PUBLIC AARE_LOG_LEVEL=aare::logDEBUG5)
|
target_compile_definitions(aare_core PUBLIC AARE_LOG_LEVEL=aare::logDEBUG5)
|
||||||
else()
|
else()
|
||||||
target_compile_definitions(aare_core PUBLIC AARE_LOG_LEVEL=aare::logERROR)
|
target_compile_definitions(aare_core PUBLIC AARE_LOG_LEVEL=aare::logERROR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_compile_definitions(aare_core PUBLIC AARE_CUSTOM_ASSERT)
|
if(AARE_CUSTOM_ASSERT)
|
||||||
|
target_compile_definitions(aare_core PUBLIC AARE_CUSTOM_ASSERT)
|
||||||
|
endif()
|
||||||
|
|
||||||
set_target_properties(aare_core PROPERTIES
|
set_target_properties(aare_core PROPERTIES
|
||||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||||
|
Reference in New Issue
Block a user