diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-11-14 21:13:11 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-11-14 21:13:11 (GMT) |
commit | 63c7dbde0104af59884747afdfa37dfe01de0dae (patch) | |
tree | 50165aae52ba88edc92a12c023bfe076554e1c3b /src | |
parent | 75440b177e1b976ab1a083da65fc63a2e8406bfe (diff) | |
download | hdf5-63c7dbde0104af59884747afdfa37dfe01de0dae.zip hdf5-63c7dbde0104af59884747afdfa37dfe01de0dae.tar.gz hdf5-63c7dbde0104af59884747afdfa37dfe01de0dae.tar.bz2 |
Fix linking of libs
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a6f7ddc..e8b9444 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -694,7 +694,7 @@ set_source_files_properties (${HDF5_BINARY_DIR}/H5overflow.h GENERATED) add_library (${HDF5_LIB_TARGET} STATIC ${common_SRCS} ${H5_PUBLIC_HEADERS} ${H5_PRIVATE_HEADERS}) TARGET_C_PROPERTIES (${HDF5_LIB_TARGET} STATIC " " " ") -target_link_libraries (${HDF5_LIB_TARGET} PUBLIC ${LINK_LIBS}) +target_link_libraries (${HDF5_LIB_TARGET} PRIVATE ${LINK_LIBS}) if (NOT WIN32) target_link_libraries (${HDF5_LIB_TARGET} PUBLIC dl) endif () @@ -720,7 +720,7 @@ set (install_targets ${HDF5_LIB_TARGET}) if (BUILD_SHARED_LIBS) add_library (${HDF5_LIBSH_TARGET} SHARED ${common_SRCS} ${H5_PUBLIC_HEADERS} ${H5_PRIVATE_HEADERS}) TARGET_C_PROPERTIES (${HDF5_LIBSH_TARGET} SHARED " " " ") - target_link_libraries (${HDF5_LIBSH_TARGET} PUBLIC ${LINK_SHARED_LIBS}) + target_link_libraries (${HDF5_LIBSH_TARGET} PRIVATE ${LINK_LIBS}) if (NOT WIN32) target_link_libraries (${HDF5_LIBSH_TARGET} PUBLIC dl) endif () |