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
45
45
)
46
46
install (DIRECTORY ${CMAKE_BINARY_DIR} /mod DESTINATION . )
47
47
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.
48
50
set (exe_dir ${CMAKE_BINARY_DIR} /bin_staging )
49
51
set (compiler_wrapper ${exe_dir} /caf )
50
52
install (
51
53
FILES "${compiler_wrapper} "
52
54
PERMISSIONS WORLD_EXECUTE WORLD_READ WORLD_WRITE OWNER_EXECUTE OWNER_READ OWNER_WRITE GROUP_EXECUTE GROUP_READ GROUP_WRITE
53
55
DESTINATION ${CMAKE_INSTALL_PREFIX} /bin/
54
56
)
55
-
56
57
file (READ ${CMAKE_CURRENT_SOURCE_DIR} /../extensions/caf-head CAF_HEADER )
57
58
file (WRITE "${compiler_wrapper} " "${CAF_HEADER} \n " )
58
59
file (APPEND "${compiler_wrapper} " "caf_mod_dir=${CMAKE_INSTALL_PREFIX} /mod\n " )
59
60
file (APPEND "${compiler_wrapper} " "caf_lib_dir=${CMAKE_INSTALL_PREFIX} /lib\n " )
60
61
file (APPEND "${compiler_wrapper} " "caf_version=${PROJECT_VERSION} \n " )
61
62
if (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 " )
63
64
elseif (portland_group_compiler )
64
65
file (APPEND "${compiler_wrapper} " "link_args=-lcaf_mpi\n " )
65
66
endif ()
You can’t perform that action at this time.
0 commit comments