From dcff11a917b61d67aec6d66ee3f424fdc43a246f Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 13 Mar 2019 11:02:38 -0500 Subject: [PATCH] Make HDF5 includes and MAX_COORD transitive (since they are needed in header files) --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb92be848..f943d0969 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()