Skip to content

Commit

Permalink
fix: expose vtk system
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Mar 17, 2024
1 parent d647441 commit 646d1a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ if(VIENNALS_USE_VTK)
enable_language(C)

find_package(VTK QUIET)
set(VIENNALS_SYSTEM_VTK ${VTK_FOUND})
set(VIENNALS_SYSTEM_VTK ${VTK_FOUND} CACHE INTERNAL "")

CPMFindPackage(
NAME VTK
Expand Down Expand Up @@ -147,8 +147,6 @@ if(VIENNALS_USE_VTK)
# This fixes an issue with the install script that causes find_package to fail.
"CMAKE_PROJECT_NAME VTK")

target_compile_definitions(${PROJECT_NAME} INTERFACE VIENNALS_USE_VTK=1)

target_link_libraries(
${PROJECT_NAME}
INTERFACE VTK::CommonExecutionModel
Expand Down

0 comments on commit 646d1a9

Please sign in to comment.