File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -45,21 +45,22 @@ install(TARGETS caf_mpi EXPORT OpenCoarraysTargets
4545)
4646install (DIRECTORY ${CMAKE_BINARY_DIR} /mod DESTINATION .)
4747
48+ # Now we write the script that passes CAF source to the compiler with the necessary arguments
49+ # and, if necessary, performs some code transformations prior to invoking the compiler.
4850set (exe_dir ${CMAKE_BINARY_DIR} /bin_staging)
4951set (compiler_wrapper ${exe_dir} /caf)
5052install (
5153 FILES "${compiler_wrapper} "
5254 PERMISSIONS WORLD_EXECUTE WORLD_READ WORLD_WRITE OWNER_EXECUTE OWNER_READ OWNER_WRITE GROUP_EXECUTE GROUP_READ GROUP_WRITE
5355 DESTINATION ${CMAKE_INSTALL_PREFIX} /bin/
5456)
55-
5657file (READ ${CMAKE_CURRENT_SOURCE_DIR} /../extensions/caf-head CAF_HEADER)
5758file (WRITE "${compiler_wrapper} " "${CAF_HEADER} \n " )
5859file (APPEND "${compiler_wrapper} " "caf_mod_dir=${CMAKE_INSTALL_PREFIX} /mod\n " )
5960file (APPEND "${compiler_wrapper} " "caf_lib_dir=${CMAKE_INSTALL_PREFIX} /lib\n " )
6061file (APPEND "${compiler_wrapper} " "caf_version=${PROJECT_VERSION} \n " )
6162if (gfortran_compiler)
62- file (APPEND "${compiler_wrapper} " "link_args=-fcoarray=lib -lcaf_mpi\n " )
63+ file (APPEND "${compiler_wrapper} " "link_args=' -fcoarray=lib -lcaf_mpi' \n " )
6364elseif (portland_group_compiler)
6465 file (APPEND "${compiler_wrapper} " "link_args=-lcaf_mpi\n " )
6566endif ()
You can’t perform that action at this time.
0 commit comments