From a11e57303cac3046f925791c6f46b3848863dfe4 Mon Sep 17 00:00:00 2001 From: Rene Halver <r.halver@fz-juelich.de> Date: Thu, 21 Jan 2021 11:44:44 +0100 Subject: [PATCH] fixed propagation of VTK dependency --- Config.cmake.in | 2 +- src/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Config.cmake.in b/Config.cmake.in index 4ad3f79..f721e1e 100644 --- a/Config.cmake.in +++ b/Config.cmake.in @@ -3,7 +3,7 @@ include(CMakeFindDependencyMacro) find_dependency(MPI) #todo(s.schulz): Somehow propagate the VTK switch... -#find_dependency(VTK) +find_dependency(VTK) include("${CMAKE_CURRENT_LIST_DIR}/ALLTargets.cmake") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e8aca7b..097851a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -48,8 +48,8 @@ if (CM_ALL_FORTRAN) set_property(TARGET ALL_fortran PROPERTY LINKER_LANGUAGE Fortran) if(CM_ALL_VTK_OUTPUT) - target_include_directories(ALL_fortran PRIVATE ${VTK_INCLUDE_DIRS}) - target_link_libraries(ALL_fortran PRIVATE ${VTK_LIBRARIES}) + target_include_directories(ALL_fortran PUBLIC ${VTK_INCLUDE_DIRS}) + target_link_libraries(ALL_fortran PUBLIC ${VTK_LIBRARIES}) endif(CM_ALL_VTK_OUTPUT) target_include_directories(ALL_fortran PUBLIC ${MPI_Fortran_INCLUDE_PATH}) -- GitLab