From cf987b51babf57d541e8467cb4038b45a28b0422 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 14 Apr 2017 17:41:10 +0200 Subject: [PATCH] Skip Three headers if QGLViewer is missing --- Installation/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index 3aa8dd441b5..f8fadb610dc 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -1158,6 +1158,14 @@ You must disable CGAL_ENABLE_CHECK_HEADERS and CGAL_COMPUTE_DEPENDENCIES.") set(skip_hdr TRUE) endif() endif() + if(NOT QGLVIEWER_FOUND) + string(REGEX MATCH "CGAL/Three/.*" is_a_three_header ${header}) + if(is_a_three_header) + message(STATUS "Skip LEDA header \"${header}\" because \ +QGLVIEWER_FOUND_FOUND is false.") + set(skip_hdr TRUE) + endif() + endif() string(REGEX MATCH "CGAL/leda_.*" is_a_leda_header ${header}) if(NOT LEDA_FOUND AND is_a_leda_header) message(STATUS "Skip LEDA header \"${header}\" because \