Skip to content

Commit

Permalink
Use correct CMake variable to find the HDF5 include dir.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
  • Loading branch information
imikejackson committed Jul 17, 2022
1 parent 9852b48 commit a2e8332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

project(H5Support LANGUAGES C CXX VERSION 1.0.7)
project(H5Support LANGUAGES C CXX VERSION 1.0.8)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
Expand Down Expand Up @@ -113,7 +113,7 @@ else() # -- Normal build with HDF5 found using HDF5Config.cmake
include(${CMP_SOURCE_DIR}/ExtLib/HDF5Support.cmake)
set(HDF5_C_TARGET_NAME hdf5::hdf5-shared)
endif()
target_include_directories(H5Support INTERFACE ${HDF5_INCLUDE_DIRS})
target_include_directories(H5Support INTERFACE ${HDF5_INCLUDE_DIR})
target_link_libraries(H5Support INTERFACE ${HDF5_C_TARGET_NAME})


Expand Down

0 comments on commit a2e8332

Please sign in to comment.