mirror of https://github.com/CGAL/cgal
remove CMake warnings about CMP0167
The issue was when VTK/ITK was searched. The variable `CMAKE_POLICY_DEFAULT_CMP0167` can be used to workaround that.
This commit is contained in:
parent
9bafc13627
commit
bdd7988a4a
|
|
@ -63,6 +63,7 @@ else()
|
|||
message(STATUS "NOTICE: Tests that use OpenMesh will not be compiled.")
|
||||
endif()
|
||||
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0167 NEW)
|
||||
find_package(VTK 9.0 QUIET COMPONENTS CommonCore IOCore IOLegacy IOXML FiltersCore FiltersSources)
|
||||
if (VTK_FOUND AND VTK_LIBRARIES)
|
||||
message(STATUS "VTK ${VTK_VERSION} found ${VTK_LIBRARIES}")
|
||||
|
|
|
|||
|
|
@ -949,6 +949,7 @@ if(CGAL_BRANCH_BUILD)
|
|||
find_package(Doxygen REQUIRED)
|
||||
find_package(Eigen3 REQUIRED)
|
||||
find_package(Qt6 COMPONENTS Core Widgets OpenGL Gui REQUIRED)
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0167 NEW)
|
||||
find_package(VTK COMPONENTS ImagingGeneral IOImage NO_MODULE)
|
||||
if(VTK_FOUND)
|
||||
get_target_property(VTK_INCLUDE_DIRS VTK::IOImage INTERFACE_INCLUDE_DIRECTORIES)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ include(CGAL_Eigen3_support)
|
|||
find_package(TBB QUIET)
|
||||
include(CGAL_TBB_support)
|
||||
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0167 NEW)
|
||||
find_package(VTK QUIET COMPONENTS vtkImagingGeneral vtkIOImage vtkIOXML vtkIOMINC vtkIOLegacy NO_MODULE)
|
||||
if(VTK_FOUND)
|
||||
message(STATUS "VTK was found")
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ else()
|
|||
message(STATUS "NOTICE: the OM IO plugin needs OpenMesh libraries and will not be compiled.")
|
||||
endif()
|
||||
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0167 NEW)
|
||||
find_package(VTK 9.0 QUIET COMPONENTS CommonCore IOCore IOLegacy IOXML FiltersCore FiltersSources)
|
||||
set_package_properties(
|
||||
VTK PROPERTIES
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ target_link_libraries(
|
|||
target_include_directories(mesh_3_plugin PRIVATE include)
|
||||
CGAL_Lab_target_use_c3t3_type(mesh_3_plugin)
|
||||
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0167 NEW)
|
||||
find_package(ITK NAMES ITK InsightToolkit
|
||||
QUIET COMPONENTS ITKCommon ITKThresholding ITKSmoothing ITKImageIntensity)
|
||||
if(ITK_FOUND)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ if(NOT TARGET CGAL::Eigen3_support)
|
|||
return()
|
||||
endif()
|
||||
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0167 NEW)
|
||||
find_package(VTK 9.0
|
||||
COMPONENTS ImagingGeneral IOImage
|
||||
QUIET)
|
||||
|
|
@ -170,6 +171,7 @@ if(TARGET CGAL::CGAL_ImageIO)
|
|||
target_link_libraries(mesh_3D_image_variable_size
|
||||
PRIVATE CGAL::Eigen3_support)
|
||||
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0167 NEW)
|
||||
find_package(ITK NAMES ITK InsightToolkit
|
||||
QUIET COMPONENTS ITKCommon ITKThresholding ITKSmoothing ITKImageIntensity)
|
||||
if(ITK_FOUND)
|
||||
|
|
|
|||
Loading…
Reference in New Issue