Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PSP3] CMake fix for OpenGR #8591

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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()
find_package(OpenGR QUIET)
include(CGAL_OpenGR_support)

if(TARGET CGAL::OpenGR_support)
create_single_source_cgal_program("registration_with_OpenGR.cpp")
Expand Down
13 changes: 4 additions & 9 deletions Polyhedron/demo/Polyhedron/Plugins/Point_set/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(OpenGR QUIET)
include(CGAL_OpenGR_support)

find_package(libpointmatcher QUIET)
include(CGAL_pointmatcher_support)

Expand Down
Loading