mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-24 15:25:00 +08:00
Remove link flag from compile command
This commit is contained in:
parent
eb8d35dd8c
commit
7c4598cf74
@ -69,7 +69,6 @@ foreach (example ${examples})
|
||||
)
|
||||
target_compile_options(f90_ex_${example}-shared
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (f90_ex_${example}-shared
|
||||
@ -129,7 +128,6 @@ foreach (example ${F2003_examples})
|
||||
)
|
||||
target_compile_options(f03_ex_${example}-shared
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (f03_ex_${example}-shared
|
||||
@ -189,7 +187,6 @@ if (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND)
|
||||
)
|
||||
target_compile_options(f90_ex_ph5example-shared
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (f90_ex_ph5example-shared
|
||||
|
@ -305,7 +305,6 @@ if (BUILD_SHARED_LIBS)
|
||||
"H5_BUILT_AS_DYNAMIC_LIB"
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:BUILD_HDF5_DLL;HDF5F90_WINDOWS>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (${HDF5_F90_LIBSH_TARGET}
|
||||
|
@ -169,7 +169,6 @@ if (BUILD_SHARED_LIBS)
|
||||
"H5_BUILT_AS_DYNAMIC_LIB"
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:BUILD_HDF5_TEST_DLL;HDF5F90_WINDOWS>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (${HDF5_F90_TEST_LIBSH_TARGET}
|
||||
@ -271,7 +270,6 @@ if (BUILD_SHARED_LIBS)
|
||||
)
|
||||
target_compile_options(testhdf5_fortran-shared
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (testhdf5_fortran-shared
|
||||
@ -347,7 +345,6 @@ if (BUILD_SHARED_LIBS)
|
||||
)
|
||||
target_compile_options(testhdf5_fortran_1_8-shared
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (testhdf5_fortran_1_8-shared
|
||||
@ -427,7 +424,6 @@ if (BUILD_SHARED_LIBS)
|
||||
)
|
||||
target_compile_options(fortranlib_test_F03-shared
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (fortranlib_test_F03-shared
|
||||
@ -489,7 +485,6 @@ if (BUILD_SHARED_LIBS)
|
||||
)
|
||||
target_compile_options(fflush1-shared
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (fflush1-shared
|
||||
@ -551,7 +546,6 @@ if (BUILD_SHARED_LIBS)
|
||||
)
|
||||
target_compile_options(fflush2-shared
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (fflush2-shared
|
||||
|
@ -201,7 +201,6 @@ if (BUILD_SHARED_LIBS)
|
||||
"H5_BUILT_AS_DYNAMIC_LIB"
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:BUILD_HDF5_HL_DLL;HDF5F90_WINDOWS>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (${HDF5_HL_F90_LIBSH_TARGET}
|
||||
|
@ -47,7 +47,6 @@ macro (ADD_H5_FORTRAN_EXE file)
|
||||
)
|
||||
target_compile_options(hl_f90_${file}-shared
|
||||
PRIVATE
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:/dll>
|
||||
$<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}>
|
||||
)
|
||||
target_link_libraries (hl_f90_${file}-shared
|
||||
|
Loading…
Reference in New Issue
Block a user