Skip to content

Commit

Permalink
[cmake] Do not define DEBUG macros for RelWithDebInfo builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Mar 4, 2024
1 parent 4145342 commit d84525f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c++/h5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ target_include_directories(${PROJECT_NAME}_c PUBLIC $<BUILD_INTERFACE:${PROJECT_
target_include_directories(${PROJECT_NAME}_c SYSTEM INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_FULL_INCLUDEDIR}>)
target_compile_definitions(${PROJECT_NAME}_c PUBLIC
H5_GIT_HASH=${PROJECT_GIT_HASH}
$<$<CONFIG:Debug,RelWithDebInfo>:H5_DEBUG>
$<$<CONFIG:Debug>:H5_DEBUG>
)

# Install library and headers
Expand Down

0 comments on commit d84525f

Please sign in to comment.