mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Make HDF5 includes and MAX_COORD transitive (since they are needed in header files)
This commit is contained in:
parent
86c33fa7cb
commit
dcff11a917
1 changed files with 2 additions and 3 deletions
|
|
@ -255,13 +255,12 @@ set_target_properties(libopenmc PROPERTIES
|
|||
OUTPUT_NAME openmc)
|
||||
|
||||
target_include_directories(libopenmc
|
||||
PUBLIC include
|
||||
PRIVATE ${HDF5_INCLUDE_DIRS})
|
||||
PUBLIC include ${HDF5_INCLUDE_DIRS})
|
||||
|
||||
# Set compile flags
|
||||
target_compile_options(libopenmc PRIVATE ${cxxflags})
|
||||
|
||||
target_compile_definitions(libopenmc PRIVATE -DMAX_COORD=${maxcoord})
|
||||
target_compile_definitions(libopenmc PUBLIC -DMAX_COORD=${maxcoord})
|
||||
if (HDF5_IS_PARALLEL)
|
||||
target_compile_definitions(libopenmc PRIVATE -DPHDF5)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue