File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ set_target_properties(opencoarrays_mod
126
126
Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR} /${CMAKE_INSTALL_INCLUDEDIR} /${mod_dir_tail} "
127
127
POSITION_INDEPENDENT_CODE TRUE )
128
128
129
-
130
129
add_library (caf_mpi SHARED mpi_caf.c ../common/caf_auxiliary.c $< TARGET_OBJECTS:opencoarrays_mod> )
131
130
add_library (caf_mpi_static STATIC mpi_caf.c ../common/caf_auxiliary.c $< TARGET_OBJECTS:opencoarrays_mod> )
132
131
target_link_libraries (caf_mpi PRIVATE ${MPI_C_LIBRARIES} ${MPI_Fortran_LIBRARIES} )
@@ -147,6 +146,15 @@ set_target_properties ( caf_mpi
147
146
# VERSION ${PROJECT_VERSION}
148
147
)
149
148
149
+ # Create a symlink in the include dir
150
+ add_custom_command (TARGET caf_mpi
151
+ POST_BUILD
152
+ COMMAND ${CMAKE_COMMAND} -E create_symlink "./${mod_dir_tail} /opencoarrays.mod" "${CMAKE_BINARY_DIR} /${CMAKE_INSTALL_INCLUDEDIR} /opencaorrays.mod"
153
+ COMMENT "Creating symlink ${CMAKE_INSTALL_INCLUDEDIR} /opencaorrays.mod --> ${CMAKE_INSTALL_INCLUDEDIR} /${mod_dir_tail} /opencoarrays.mod" )
154
+
155
+ install (DIRECTORY "${CMAKE_BINARY_DIR} /${CMAKE_INSTALL_INCLUDEDIR} /" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} "
156
+ FILES_MATCHING PATTERN "*.mod" )
157
+
150
158
set_target_properties ( caf_mpi_static
151
159
PROPERTIES
152
160
SOVERSION ${CAF_SO_VERSION}
You can’t perform that action at this time.
0 commit comments