Skip to content

Commit ef5b511

Browse files
author
Damian Rouson
committed
Correcting a typo that prevents building CAF codes with the 'caf' scrpt on Linux.
1 parent 322221d commit ef5b511

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mpi/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,22 @@ install(TARGETS caf_mpi EXPORT OpenCoarraysTargets
4545
)
4646
install(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.
4850
set(exe_dir ${CMAKE_BINARY_DIR}/bin_staging)
4951
set(compiler_wrapper ${exe_dir}/caf)
5052
install(
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-
5657
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/../extensions/caf-head CAF_HEADER)
5758
file(WRITE "${compiler_wrapper}" "${CAF_HEADER}\n")
5859
file(APPEND "${compiler_wrapper}" "caf_mod_dir=${CMAKE_INSTALL_PREFIX}/mod\n")
5960
file(APPEND "${compiler_wrapper}" "caf_lib_dir=${CMAKE_INSTALL_PREFIX}/lib\n")
6061
file(APPEND "${compiler_wrapper}" "caf_version=${PROJECT_VERSION}\n")
6162
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")
6364
elseif(portland_group_compiler)
6465
file(APPEND "${compiler_wrapper}" "link_args=-lcaf_mpi\n")
6566
endif()

0 commit comments

Comments
 (0)