mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-15 07:40:23 +08:00
Merge pull request #848 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_10 to hdf5_1_10
* commit '58a475d3fabba89a9fed2a22d3f0851c9933f650': Fix link_libs and static CRT fortran
This commit is contained in:
commit
ca327ba1c4
@ -15,6 +15,14 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
ENABLE_LANGUAGE (Fortran)
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Fix Fortran flags if we are compiling staticly on Windows using
|
||||
# Windows_MT.cmake from config/cmake/UserMacros
|
||||
#-------------------------------------------------------------------------------
|
||||
if (BUILD_STATIC_CRT_LIBS)
|
||||
TARGET_STATIC_CRT_FLAGS ()
|
||||
endif ()
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Detect name mangling convention used between Fortran and C
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -30,7 +30,7 @@ set (testphdf5_SOURCES
|
||||
add_executable (testphdf5 ${testphdf5_SOURCES})
|
||||
TARGET_NAMING (testphdf5 STATIC)
|
||||
TARGET_C_PROPERTIES (testphdf5 STATIC " " " ")
|
||||
target_link_libraries (testphdf5 ${HDF5_TEST_LIB_TARGET} PUBLIC ${HDF5_LIB_TARGET})
|
||||
target_link_libraries (testphdf5 PUBLIC ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
if (HDF5_ENABLE_PARALLEL AND MPI_C_FOUND)
|
||||
target_link_libraries (testphdf5 PRIVATE ${MPI_C_LIBRARIES})
|
||||
endif ()
|
||||
@ -40,7 +40,7 @@ MACRO (ADD_H5P_EXE file)
|
||||
add_executable (${file} ${HDF5_TEST_PAR_SOURCE_DIR}/${file}.c)
|
||||
TARGET_NAMING (${file} STATIC)
|
||||
TARGET_C_PROPERTIES (${file} STATIC " " " ")
|
||||
target_link_libraries (${file} ${HDF5_TEST_LIB_TARGET} PUBLIC ${HDF5_LIB_TARGET})
|
||||
target_link_libraries (${file} PUBLIC ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
if (HDF5_ENABLE_PARALLEL AND MPI_C_FOUND)
|
||||
target_link_libraries (${file} PRIVATE ${MPI_C_LIBRARIES})
|
||||
endif ()
|
||||
|
Loading…
Reference in New Issue
Block a user