aboutsummaryrefslogtreecommitdiff
path: root/ports/matio/CMakeLists.txt
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-13 01:52:00 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-13 01:52:00 -0700
commitc4457ea6a70d890ceae0b81a89d677eee28f7645 (patch)
treede11854200fa39ac1c84c0bc57c645e219003598 /ports/matio/CMakeLists.txt
parent990a5d71bf5b472fd1ba8c6bbf1ab2e152ce6454 (diff)
downloadvcpkg-c4457ea6a70d890ceae0b81a89d677eee28f7645.tar.gz
vcpkg-c4457ea6a70d890ceae0b81a89d677eee28f7645.zip
[matio][rocksdb] Fix build
Diffstat (limited to 'ports/matio/CMakeLists.txt')
-rw-r--r--ports/matio/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/ports/matio/CMakeLists.txt b/ports/matio/CMakeLists.txt
index 31b7e1e2b..6c21bbf53 100644
--- a/ports/matio/CMakeLists.txt
+++ b/ports/matio/CMakeLists.txt
@@ -30,9 +30,8 @@ find_package(ZLIB REQUIRED)
target_link_libraries(libmatio PRIVATE ZLIB::ZLIB)
target_compile_definitions(libmatio PRIVATE -DHAVE_ZLIB=1)
-find_package(HDF5 REQUIRED)
-target_include_directories(libmatio PRIVATE ${HDF5_INCLUDE_DIRS} )
-target_link_libraries(libmatio PRIVATE ${HDF5_C_LIBRARIES})
+find_package(hdf5 CONFIG REQUIRED)
+target_link_libraries(libmatio PRIVATE hdf5::hdf5-shared hdf5::hdf5_hl-shared)
if(BUILD_SHARED_LIBS)
target_compile_definitions(libmatio PRIVATE -DHAVE_HDF5=1 -DH5_BUILT_AS_DYNAMIC_LIB)
else()