From 87279ee32b1191f696bac77fcc30782065ae01fd Mon Sep 17 00:00:00 2001 From: Damian Rouson Date: Tue, 14 Jun 2022 18:24:34 -0700 Subject: [PATCH] fix #759 - teach caf_compile_executable mod dir This commit applies the patch provided Brad King in a review of PR #758. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c55c1ae..e105e657 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()