From 42b5d79aabc81666971da086533a8066d5c1fe24 Mon Sep 17 00:00:00 2001 From: Jim Wittig Date: Wed, 22 Oct 2025 15:04:44 -0600 Subject: [PATCH] Add src/framework to list of include directories when building with CMake In PR 1359 a new file, src/framework/mpas_halo_interface.inc is included by several files in the src/core_atmosphere tree. Therefore compiling core_atmosphere now requires including src/framework. To accomplish that the CMakeLists.txt file for src/framework now exports its source directory as an interface include directory. This adds that directory to the compilation include path for any target which links against framework. --- src/framework/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/framework/CMakeLists.txt b/src/framework/CMakeLists.txt index 8273e8e407..dbaccf7a13 100644 --- a/src/framework/CMakeLists.txt +++ b/src/framework/CMakeLists.txt @@ -69,6 +69,9 @@ if (MPAS_PROFILE) list(APPEND FRAMEWORK_LINK_LIBRARIES GPTL::GPTL) endif () target_link_libraries(framework PUBLIC ${FRAMEWORK_LINK_LIBRARIES}) +target_include_directories(framework INTERFACE + $ + $) install(TARGETS framework EXPORT ${PROJECT_NAME}Exports ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}