Skip to content

Commit

Permalink
#20 Fix cells cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Nov 3, 2024
1 parent 254430a commit c7172ff
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/cells/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ find_package(Python3 REQUIRED COMPONENTS Interpreter Development)

# Find VTK
find_package(VTK COMPONENTS CommonCore QUIET)
if(VTK_FOUND)
find_package(VTK REQUIRED COMPONENTS CommonCore RenderingCore RenderingOpenGL2 WrappingPythonCore)
else()
find_package(VTK REQUIRED COMPONENTS vtkCommonCore vtkRenderingCore vtkRenderingOpenGL2 vtkWrappingPythonCore)
endif()
endforeach()
if(VTK_FOUND)
find_package(VTK REQUIRED COMPONENTS CommonCore RenderingCore RenderingOpenGL2 WrappingPythonCore)
else()
find_package(VTK REQUIRED COMPONENTS vtkCommonCore vtkRenderingCore vtkRenderingOpenGL2 vtkWrappingPythonCore)
endif()

# Find PETSc
find_package(PETSc REQUIRED)
Expand Down

0 comments on commit c7172ff

Please sign in to comment.