diff --git a/Config.cmake.in b/Config.cmake.in index 4ad3f798c8f0d3028332413395536fa2d6834450..f721e1ecb8bdd340c472102ea213566cf1269fd9 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 e8aca7b28cd439be97ed5a2b30aabef4757d1d9f..097851a8e10641ba8107011718e0c72744d74cf0 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})