Skip to content

Commit

Permalink
fix: re-add deleted line
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Mar 17, 2024
1 parent 646d1a9 commit f3302b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ if(VIENNALS_USE_VTK)
enable_language(C)

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

CPMFindPackage(
NAME VTK
Expand Down Expand Up @@ -147,6 +149,8 @@ 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 f3302b5

Please sign in to comment.