summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-06-24 12:26:30 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-06-24 12:26:30 (GMT)
commit4e06d523d5895d8ff0ab0ca89492f48a19f0b41c (patch)
tree3578756dab0434742a46666421e441e14db50b6a
parent60dee604cdf2532c61666cc405b1891658dbdd73 (diff)
parent21e147da71ef226b712ec4d087af95aad9691dec (diff)
downloadhdf5-4e06d523d5895d8ff0ab0ca89492f48a19f0b41c.zip
hdf5-4e06d523d5895d8ff0ab0ca89492f48a19f0b41c.tar.gz
hdf5-4e06d523d5895d8ff0ab0ca89492f48a19f0b41c.tar.bz2
Merge pull request #1765 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '21e147da71ef226b712ec4d087af95aad9691dec': Fix fortran test and test library linking
-rw-r--r--fortran/test/CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/fortran/test/CMakeLists.txt b/fortran/test/CMakeLists.txt
index 738638a..9c68860 100644
--- a/fortran/test/CMakeLists.txt
+++ b/fortran/test/CMakeLists.txt
@@ -50,9 +50,9 @@ if (NOT BUILD_SHARED_LIBS)
INTERFACE "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
)
TARGET_C_PROPERTIES (${HDF5_F90_C_TEST_LIB_TARGET} STATIC)
- target_link_libraries (${HDF5_F90_C_TEST_LIB_TARGET} PRIVATE
- ${HDF5_F90_C_LIB_TARGET}
- ${HDF5_TEST_LIB_TARGET}
+ target_link_libraries (${HDF5_F90_C_TEST_LIB_TARGET}
+ PRIVATE ${HDF5_F90_C_LIB_TARGET}
+ PUBLIC ${HDF5_TEST_LIB_TARGET}
)
H5_SET_LIB_OPTIONS (${HDF5_F90_C_TEST_LIB_TARGET} ${HDF5_F90_C_TEST_LIB_NAME} STATIC 0)
set_target_properties (${HDF5_F90_C_TEST_LIB_TARGET} PROPERTIES
@@ -69,9 +69,9 @@ else ()
PUBLIC "H5_BUILT_AS_DYNAMIC_LIB"
)
TARGET_C_PROPERTIES (${HDF5_F90_C_TEST_LIBSH_TARGET} SHARED)
- target_link_libraries (${HDF5_F90_C_TEST_LIBSH_TARGET} PRIVATE
- ${HDF5_F90_C_LIBSH_TARGET}
- ${HDF5_TEST_LIBSH_TARGET}
+ target_link_libraries (${HDF5_F90_C_TEST_LIBSH_TARGET}
+ PRIVATE ${HDF5_F90_C_LIBSH_TARGET}
+ PUBLIC ${HDF5_TEST_LIBSH_TARGET}
)
H5_SET_LIB_OPTIONS (${HDF5_F90_C_TEST_LIBSH_TARGET} ${HDF5_F90_C_TEST_LIB_NAME} SHARED "F")
set_target_properties (${HDF5_F90_C_TEST_LIBSH_TARGET} PROPERTIES