Skip Three headers if QGLViewer is missing

This commit is contained in:
Laurent Rineau 2017-04-14 17:41:10 +02:00
parent 685947ddec
commit cf987b51ba
1 changed files with 8 additions and 0 deletions

View File

@ -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 \