Skip to content

Commit

Permalink
fix #759 - teach caf_compile_executable mod dir
Browse files Browse the repository at this point in the history
This commit applies the patch provided Brad King in a review of
PR #758.
  • Loading branch information
rouson committed Jun 15, 2022
1 parent 7f75c50 commit 87279ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ find_program(BASH_EXECUTABLE bash
REQUIRED)
function(caf_compile_executable target main_depend)
set(includes "")
list(APPEND includes "-I${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/${mod_dir_tail}")
foreach(includedir ${MPI_Fortran_INCLUDE_DIRS})
list(APPEND includes "-I${includedir}")
endforeach()
Expand Down

0 comments on commit 87279ee

Please sign in to comment.