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 \