From 3ccd79eec68ba485b7284bc946ee82c353a45e54 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Wed, 20 Jan 2021 15:25:55 +0100 Subject: [PATCH] Don't check if CGAL_comp is found, it will be done later. --- Installation/lib/cmake/CGAL/CGALConfig.cmake | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Installation/lib/cmake/CGAL/CGALConfig.cmake b/Installation/lib/cmake/CGAL/CGALConfig.cmake index 014def99418..bb8bdcc9c93 100644 --- a/Installation/lib/cmake/CGAL/CGALConfig.cmake +++ b/Installation/lib/cmake/CGAL/CGALConfig.cmake @@ -83,13 +83,10 @@ foreach(comp ${CGAL_FIND_COMPONENTS}) if(NOT comp MATCHES "Core|ImageIO|Qt5") message(FATAL_ERROR "The requested CGAL component ${comp} does not exist!") endif() - - if(CGAL_${comp}_FOUND) - if(comp MATCHES "Core" AND CGAL_DISABLE_GMP) - message("CGAL_Core needs GMP and won't be used.") - else() - list(APPEND CGAL_LIBRARIES CGAL_${comp}) - endif() + if(comp MATCHES "Core" AND CGAL_DISABLE_GMP) + message("CGAL_Core needs GMP and won't be used.") + else() + list(APPEND CGAL_LIBRARIES CGAL_${comp}) endif() endforeach()