]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make sure we use recent versions of CGAL. 13653/head
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 3 May 2022 20:05:54 +0000 (22:05 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Tue, 3 May 2022 20:05:54 +0000 (22:05 +0200)
cmake/modules/FindCGAL.cmake

index 8262f941a770a95b5c437a0642e5359d831d1b3c..494bd72d13c16d80fc314b2e834210466721a711 100644 (file)
@@ -31,12 +31,13 @@ ENDIF()
 IF(DEAL_II_HAVE_CXX17)
   # temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
   LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
-  FIND_PACKAGE(CGAL)
+  FIND_PACKAGE(CGAL 5.0)
   LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
-  IF(CGAL_HEADER_ONLY)
+  IF(NOT CGAL_HEADER_ONLY)
     SET(CGAL_LIBS "-NOTFOUND")
-  ELSE(CGAL_HEADER_ONLY)
-    SET(CGAL_LIBS "${CGAL_CONFIGURED_LIBRARIES}")
+    MESSAGE(STATUS "CGAL wrappers require header only version of CGAL.")
+  ELSE()
+    SET(CGAL_LIBS CGAL::CGAL)
   ENDIF(CGAL_HEADER_ONLY)
 ELSE(DEAL_II_HAVE_CXX17)
   SET(CGAL_FOUND FALSE)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.