mirror of https://github.com/CGAL/cgal
Don't check if CGAL_comp is found, it will be done later.
This commit is contained in:
parent
fab8c31662
commit
3ccd79eec6
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue