Make HDF5 includes and MAX_COORD transitive (since they are needed in header files)

This commit is contained in:
Paul Romano 2019-03-13 11:02:38 -05:00
parent 86c33fa7cb
commit dcff11a917

View file

@ -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()