Merge pull request #8475 from soesau/PSP3-OpenGR_msvc2015-GF

[PSP3] OpenGR does not work with msvc2015
This commit is contained in:
Sébastien Loriot 2024-09-09 18:00:01 +02:00
commit 2672006cae
2 changed files with 39 additions and 28 deletions

View File

@ -120,6 +120,7 @@ if(TARGET CGAL::Eigen3_support)
) )
endif() endif()
# Executables that require OpenGR # Executables that require OpenGR
if (NOT MSVC_VERSION OR MSVC_VERSION GREATER_EQUAL 1910)
find_package(OpenGR QUIET) find_package(OpenGR QUIET)
include(CGAL_OpenGR_support) include(CGAL_OpenGR_support)
if(TARGET CGAL::OpenGR_support) if(TARGET CGAL::OpenGR_support)
@ -132,7 +133,6 @@ if(TARGET CGAL::Eigen3_support)
"NOTICE : registration_with_OpenGR requires OpenGR, and will not be compiled." "NOTICE : registration_with_OpenGR requires OpenGR, and will not be compiled."
) )
endif() endif()
# Executables that require both libpointmatcher and OpenGR # Executables that require both libpointmatcher and OpenGR
if (TARGET CGAL::pointmatcher_support AND if (TARGET CGAL::pointmatcher_support AND
TARGET CGAL::OpenGR_support) TARGET CGAL::OpenGR_support)
@ -146,7 +146,12 @@ if(TARGET CGAL::Eigen3_support)
"NOTICE : registration_with_opengr_pointmatcher_pipeline requires libpointmatcher and OpenGR, and will not be compiled." "NOTICE : registration_with_opengr_pointmatcher_pipeline requires libpointmatcher and OpenGR, and will not be compiled."
) )
endif() endif()
else()
message(
STATUS
"NOTICE : OpenGR does not support your compiler, registration_with_OpenGR will not be compiled."
)
endif()
else() else()
message( message(
STATUS STATUS

View File

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