Skip to content
Snippets Groups Projects
Commit a11e5730 authored by Rene Halver's avatar Rene Halver
Browse files

fixed propagation of VTK dependency

parent 837fffc1
Branches
Tags
1 merge request!15CMake projectconfig
Pipeline #57858 passed
......@@ -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")
......
......@@ -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})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment