Skip to content
Snippets Groups Projects
Commit 01b6fb6f authored by Scott Snyder's avatar Scott Snyder Committed by Tadej Novak
Browse files

ISF_FastCaloSimParametrization: Fix ODR violation in debug build.

ISF_FastCaloSimParametrization: Fix ODR violation in debug build.

When we force code to be compiled with optimization in the debug build,
we also need to make sure that NDEBUG remains undefined.
Otherwise, we can be generating inconsistent code for Trk::ObjectCounter.
This was causing a warning when linking AtlasGeant4 in the debug build.
parent c922a4b4
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ if ( "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" )
set_source_files_properties(
${CMAKE_CURRENT_SOURCE_DIR}/src/FastCaloSimCaloExtrapolation.cxx
PROPERTIES
COMPILE_FLAGS "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}"
COMPILE_FLAGS "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -UNDEBUG "
COMPILE_DEFINITIONS "FLATTEN" )
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment