From 10e24bff50e821c07a8871d37edea7d86f599a10 Mon Sep 17 00:00:00 2001 From: Kyle Gerheiser <3209794+kgerheiser@users.noreply.github.com> Date: Wed, 28 Jul 2021 11:59:28 -0400 Subject: [PATCH] Change INTERFACE to PUBLIC in target_include_directories (#351) Included directories should be marked as PUBLIC so that the build includes the module directory. INTERFACE means to only apply it only to libraries that consume the target, but UPP itself should also include its modules. --- sorc/ncep_post.fd/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorc/ncep_post.fd/CMakeLists.txt b/sorc/ncep_post.fd/CMakeLists.txt index b26ee2b33d..20b438d943 100644 --- a/sorc/ncep_post.fd/CMakeLists.txt +++ b/sorc/ncep_post.fd/CMakeLists.txt @@ -193,7 +193,7 @@ add_library(${PROJECT_NAME}::${LIBNAME} ALIAS ${LIBNAME}) set_target_properties(${LIBNAME} PROPERTIES Fortran_MODULE_DIRECTORY ${module_dir}) -target_include_directories(${LIBNAME} INTERFACE +target_include_directories(${LIBNAME} PUBLIC $ $)