File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,15 +58,15 @@ install(TARGETS caf_mpi EXPORT OpenCoarraysTargets
58
58
)
59
59
60
60
# Install modules to standard include dir, but namespace them with compiler/version
61
- set (mod_install "${CMAKE_INSTALL_FULL_INCLUDEDIR} / OpenCoarrays/${CMAKE_Fortran_COMPILER_ID} /${CMAKE_Fortran_COMPILER_VERSION} " )
61
+ set (mod_install "OpenCoarrays/${CMAKE_Fortran_COMPILER_ID} /${CMAKE_Fortran_COMPILER_VERSION} " )
62
62
install (DIRECTORY "${CMAKE_BINARY_DIR} /mod/"
63
- DESTINATION "${mod_install} "
63
+ DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR} / ${ mod_install} "
64
64
FILES_MATCHING PATTERN "*.mod"
65
65
)
66
66
67
67
# Now add a link in standard include dir so that compilers will find by default... this may or may not actually be a good idea...
68
68
if ( "${CMAKE_Fortran_COMPILER_ID} " MATCHES "GNU" )
69
- INSTALL (CODE "execute_process( COMMAND ${CMAKE_COMMAND} -E create_symlink ${mod_install} /opencoarrays.mod ${CMAKE_INSTALL_FULL_INCLUDEDIR} /opencoarrays.mod )"
69
+ INSTALL (CODE "execute_process( COMMAND ${CMAKE_COMMAND} -E create_symlink ${mod_install} /opencoarrays.mod \$ ENV{DESTDIR} ${CMAKE_INSTALL_FULL_INCLUDEDIR} /opencoarrays.mod )"
70
70
)
71
71
endif ()
72
72
You can’t perform that action at this time.
0 commit comments