Solve linking issue on macOS with VTK for Mesh3 Polyhedron demo

This commit is contained in:
Adrien Lefieux 2021-04-30 17:34:23 +02:00 committed by Maxime Gimeno
parent 56e09b7a7b
commit 5c66c5d0e1
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ if (VTK_FOUND)
endif() endif()
if ("${VTK_VERSION_MAJOR}" GREATER "5" OR VTK_VERSION VERSION_GREATER 5) if ("${VTK_VERSION_MAJOR}" GREATER "5" OR VTK_VERSION VERSION_GREATER 5)
if(TARGET VTK::IOImage) if(TARGET VTK::IOImage)
set(VTK_LIBRARIES VTK::IOImage) set(VTK_LIBRARIES VTK::IOImage VTK::ImagingGeneral)
endif() endif()
if(NOT VTK_LIBRARIES) if(NOT VTK_LIBRARIES)
message(STATUS "NOTICE : the DICOM files (.dcm) need VTK libraries to be open and will not be able to.") message(STATUS "NOTICE : the DICOM files (.dcm) need VTK libraries to be open and will not be able to.")