Skip to content

Commit ffd4f8e

Browse files
authored
Merge pull request #323 from sourceryinstitute/bugfix-issue-321-bad-libdir
Fixes #321 bad paths in wrapper scripts
2 parents 1b0627a + a1b55ee commit ffd4f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mpi/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ install(
8181
)
8282
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/../extensions/caf-head CAF_HEADER)
8383
file(WRITE "${compiler_wrapper}" "${CAF_HEADER}\n")
84-
file(APPEND "${compiler_wrapper}" "caf_mod_dir=\"${CMAKE_INSTALL_INCLUDEDIR}/mod\"\n")
85-
file(APPEND "${compiler_wrapper}" "caf_lib_dir=\"${CMAKE_INSTALL_LIBDIR}\"\n")
84+
file(APPEND "${compiler_wrapper}" "caf_mod_dir=\"${CMAKE_INSTALL_FULL_INCLUDEDIR}/mod\"\n")
85+
file(APPEND "${compiler_wrapper}" "caf_lib_dir=\"${CMAKE_INSTALL_FULL_LIBDIR}\"\n")
8686
file(APPEND "${compiler_wrapper}" "caf_version=${PROJECT_VERSION}\n")
8787
if(gfortran_compiler)
8888
file(APPEND "${compiler_wrapper}" "link_args='-fcoarray=lib -lcaf_mpi'\n")

0 commit comments

Comments
 (0)