mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
HDFFV-11012 - add correct fortran include path properties
This commit is contained in:
parent
00d68851fc
commit
3ec66d5542
@ -267,7 +267,7 @@ if (NOT ONLY_SHARED_LIBS)
|
||||
PRIVATE
|
||||
"${HDF5_F90_SRC_SOURCE_DIR};${CMAKE_Fortran_MODULE_DIRECTORY}/static;${HDF5_F90_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_Fortran_INCLUDE_DIRS}>"
|
||||
INTERFACE
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/static>"
|
||||
)
|
||||
target_compile_definitions(${HDF5_F90_LIB_TARGET}
|
||||
PRIVATE
|
||||
@ -307,7 +307,7 @@ if (BUILD_SHARED_LIBS)
|
||||
PRIVATE
|
||||
"${HDF5_F90_SRC_SOURCE_DIR};${CMAKE_Fortran_MODULE_DIRECTORY}/shared;${HDF5_F90_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_Fortran_INCLUDE_DIRS}>"
|
||||
INTERFACE
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/shared>"
|
||||
)
|
||||
target_compile_definitions(${HDF5_F90_LIBSH_TARGET}
|
||||
PUBLIC
|
||||
|
@ -132,7 +132,7 @@ if (NOT BUILD_SHARED_LIBS)
|
||||
PRIVATE
|
||||
"${CMAKE_Fortran_MODULE_DIRECTORY}/static;${HDF5_F90_BINARY_DIR};${HDF5_F90_BINARY_DIR}/static"
|
||||
INTERFACE
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/static>"
|
||||
)
|
||||
target_compile_definitions(${HDF5_F90_TEST_LIB_TARGET}
|
||||
PRIVATE
|
||||
@ -165,7 +165,7 @@ else ()
|
||||
PRIVATE
|
||||
"${CMAKE_Fortran_MODULE_DIRECTORY}/shared;${HDF5_F90_BINARY_DIR};${HDF5_F90_BINARY_DIR}/shared"
|
||||
INTERFACE
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/shared>"
|
||||
)
|
||||
target_compile_definitions(${HDF5_F90_TEST_LIBSH_TARGET}
|
||||
PUBLIC
|
||||
|
@ -164,7 +164,7 @@ if (NOT ONLY_SHARED_LIBS)
|
||||
PRIVATE
|
||||
"${HDF5_F90_BINARY_DIR};${CMAKE_Fortran_MODULE_DIRECTORY}/static;$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_Fortran_INCLUDE_DIRS}>"
|
||||
INTERFACE
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/static>"
|
||||
)
|
||||
target_compile_definitions(${HDF5_HL_F90_LIB_TARGET}
|
||||
PUBLIC
|
||||
@ -201,7 +201,7 @@ if (BUILD_SHARED_LIBS)
|
||||
PRIVATE
|
||||
"${HDF5_F90_BINARY_DIR};${CMAKE_Fortran_MODULE_DIRECTORY}/shared;$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_Fortran_INCLUDE_DIRS}>"
|
||||
INTERFACE
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/shared>"
|
||||
)
|
||||
target_compile_definitions(${HDF5_HL_F90_LIBSH_TARGET}
|
||||
PUBLIC
|
||||
|
Loading…
Reference in New Issue
Block a user