File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ add_library(h5mpi interface.f90
8
8
${CMAKE_CURRENT_BINARY_DIR} /hdf5_config.f90
9
9
)
10
10
target_link_libraries (h5mpi PRIVATE HDF5::HDF5 MPI::MPI_Fortran )
11
- set_target_properties (h5mpi PROPERTIES Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR } /include )
12
- target_include_directories (h5mpi
13
- PUBLIC ${PROJECT_BINARY_DIR }/include
11
+ set_target_properties (h5mpi PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR } /include )
12
+ target_include_directories (h5mpi PUBLIC
13
+ $< BUILD_INTERFACE: ${CMAKE_CURRENT_BINARY_DIR } /include>
14
14
$< INSTALL_INTERFACE:include>
15
15
)
16
16
@@ -19,4 +19,4 @@ add_subdirectory(write)
19
19
20
20
install (TARGETS h5mpi EXPORT ${PROJECT_NAME} -targets )
21
21
22
- install (FILES ${PROJECT_BINARY_DIR } /include/h5mpi.mod TYPE INCLUDE )
22
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR } /include/h5mpi.mod TYPE INCLUDE )
You can’t perform that action at this time.
0 commit comments