mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
Fix fortran test and test library linking
This commit is contained in:
parent
60dee604cd
commit
21e147da71
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user