[PSP3] CMake fix for OpenGR (#8591)

## Summary of Changes

Removing outdated and faulty check for compiler version

## Release Management

* Affected package(s): Point_set_processing_3, Lab (Plugin)
This commit is contained in:
Sebastien Loriot 2024-11-08 16:06:24 +01:00 committed by GitHub
commit d6beacc463
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 17 deletions

View File

@ -121,14 +121,8 @@ if(TARGET CGAL::Eigen3_support)
endif()
# Executables that require OpenGR
if (NOT MSVC_VERSION OR MSVC_VERSION GREATER_EQUAL 1910)
find_package(OpenGR QUIET)
include(CGAL_OpenGR_support)
message(
STATUS
"NOTICE : OpenGR does not support your compiler, registration_with_OpenGR will not be compiled."
)
endif()
if(TARGET CGAL::OpenGR_support)
create_single_source_cgal_program("registration_with_OpenGR.cpp")

View File

@ -90,15 +90,10 @@ if(TARGET CGAL::Eigen3_support)
point_set_shape_detection_plugin
PUBLIC scene_surface_mesh_item scene_points_with_normal_item
scene_polygon_soup_item scene_callback_signaler CGAL::Eigen3_support)
if (NOT MSVC_VERSION OR MSVC_VERSION GREATER_EQUAL 1910)
find_package(OpenGR QUIET)
include(CGAL_OpenGR_support)
else()
message(
STATUS
"NOTICE : OpenGR does not support your compiler."
)
endif()
find_package(libpointmatcher QUIET)
include(CGAL_pointmatcher_support)