Skip to content
Snippets Groups Projects
Verified Commit cc0aa7b5 authored by Lars Bilke's avatar Lars Bilke
Browse files

[cmake] Check header, fix hdf5 includes.

parent 6db84d44
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,9 @@ target_link_libraries(
$<$<TARGET_EXISTS:petsc>:petsc>
)
target_include_directories(MeshLib PUBLIC ${VTK_INCLUDE_DIRS})
target_include_directories(
MeshLib PUBLIC ${VTK_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS}
)
target_compile_definitions(
MeshLib
......
Subproject commit 297085c8f782154bab0c10249f47560cbfab9941
Subproject commit 3398e78feafb6890e5c27c3e6ce5d36ce1b922b0
......@@ -122,7 +122,8 @@ CPMFindPackage(
if(Eigen3_ADDED)
add_library(Eigen3::Eigen INTERFACE IMPORTED)
target_include_directories(
Eigen3::Eigen SYSTEM INTERFACE ${Eigen3_SOURCE_DIR} ${OpenMP_CXX_INCLUDE_DIRS}
Eigen3::Eigen SYSTEM INTERFACE ${Eigen3_SOURCE_DIR}
${OpenMP_CXX_INCLUDE_DIRS}
)
endif()
......@@ -220,11 +221,10 @@ else()
if(ZLIB_ADDED)
list(APPEND HDF5_LIBRARIES zlibstatic)
endif()
set(HDF5_C_INCLUDE_DIR ${HDF5_SOURCE_DIR}/src)
set(HDF5_INCLUDE_DIR ${HDF5_SOURCE_DIR}/src)
target_include_directories(
hdf5-static INTERFACE ${HDF5_BINARY_DIR} ${HDF5_INCLUDE_DIR}
)
set(HDF5_INCLUDE_DIRS ${HDF5_SOURCE_DIR}/src ${HDF5_BINARY_DIR})
set(HDF5_C_INCLUDE_DIRS ${HDF5_INCLUDE_DIRS})
set(HDF5_C_INCLUDE_DIR ${HDF5_INCLUDE_DIRS})
target_include_directories(hdf5-static INTERFACE ${HDF5_INCLUDE_DIRS})
else()
find_package(HDF5 REQUIRED)
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