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
5858)
5959
6060# 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} " )
6262install (DIRECTORY "${CMAKE_BINARY_DIR} /mod/"
63- DESTINATION "${mod_install} "
63+ DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR} / ${ mod_install} "
6464 FILES_MATCHING PATTERN "*.mod"
6565)
6666
6767# 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...
6868if ( "${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 )"
7070 )
7171endif ()
7272
You can’t perform that action at this time.
0 commit comments