Don't check if CGAL_comp is found, it will be done later.

This commit is contained in:
Maxime Gimeno 2021-01-20 15:25:55 +01:00
parent fab8c31662
commit 3ccd79eec6
1 changed files with 4 additions and 7 deletions

View File

@ -83,13 +83,10 @@ foreach(comp ${CGAL_FIND_COMPONENTS})
if(NOT comp MATCHES "Core|ImageIO|Qt5") if(NOT comp MATCHES "Core|ImageIO|Qt5")
message(FATAL_ERROR "The requested CGAL component ${comp} does not exist!") message(FATAL_ERROR "The requested CGAL component ${comp} does not exist!")
endif() endif()
if(comp MATCHES "Core" AND CGAL_DISABLE_GMP)
if(CGAL_${comp}_FOUND) message("CGAL_Core needs GMP and won't be used.")
if(comp MATCHES "Core" AND CGAL_DISABLE_GMP) else()
message("CGAL_Core needs GMP and won't be used.") list(APPEND CGAL_LIBRARIES CGAL_${comp})
else()
list(APPEND CGAL_LIBRARIES CGAL_${comp})
endif()
endif() endif()
endforeach() endforeach()