From 29934c5b9f0237a5a80b67ce294041aa3c6c9494 Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Tue, 30 Jul 2024 12:23:52 -0500 Subject: [PATCH] Don't treat hdf5 libs as if they were dirs This causes nonsensical -L and -Wl,-rpath arguments to be added which causes warnings to be printed by the linker. HDF5_LIBRARIES are already being used in TARGET_LINK_LIBRARIES later so the libraries are already being linked to correctly. The bug was introduced in 23518278e8687cabd83b543afa22b58eaf049d6d. --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index caeac56..cf9e1b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,7 +115,6 @@ INCLUDE_DIRECTORIES( ${TinyXML_INCLUDE_DIR} ) # hdf5 find_package(HDF5 1.8 COMPONENTS C HL REQUIRED) INCLUDE_DIRECTORIES (${HDF5_INCLUDE_DIRS}) -link_directories(${HDF5_LIBRARIES}) # hdf5 compat #ADD_DEFINITIONS( -DH5_USE_16_API ) #ADD_DEFINITIONS( -DH5_BUILT_AS_DYNAMIC_LIB )