diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-11-20 19:16:27 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-11-20 19:16:27 (GMT) |
commit | 83122c82b2eab93a112b84713f03d813f1601328 (patch) | |
tree | a0e84e0cadb64d4b54a806355d242396c10073ab /src | |
parent | b670ba9e70010fdee3f5b65aaa9bd032ca59432c (diff) | |
parent | 3698029cca64856918f2554039063178d45d63ab (diff) | |
download | hdf5-83122c82b2eab93a112b84713f03d813f1601328.zip hdf5-83122c82b2eab93a112b84713f03d813f1601328.tar.gz hdf5-83122c82b2eab93a112b84713f03d813f1601328.tar.bz2 |
Merge pull request #791 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_8_20 to hdf5_1_8_20
* commit '3698029cca64856918f2554039063178d45d63ab':
HDFFV-10329 Correct LINK INTERFACE and VS20013 compile
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..a825958 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} ${LINK_COMP_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} ${LINK_COMP_LIBS}) if (NOT WIN32) target_link_libraries (${HDF5_LIBSH_TARGET} PUBLIC dl) endif () |