]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: FindDEAL_II_P4EST: do not use optimized/debug/general
authorMatthias Maier <tamiko@43-1.org>
Fri, 3 Mar 2023 21:03:19 +0000 (15:03 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 17 Mar 2023 12:44:54 +0000 (07:44 -0500)
cmake/modules/FindDEAL_II_P4EST.cmake

index 5309bdc68d73abaf9b22a98b090b5c24a30f4dbe..b54a3dd11c7bd6d22ff766ace46eaddab052da5a 100644 (file)
@@ -92,12 +92,13 @@ if( ( "${P4EST_LIBRARY_OPTIMIZED}" STREQUAL "${P4EST_LIBRARY_DEBUG}"
       AND "${SC_LIBRARY_OPTIMIZED}" STREQUAL "${SC_LIBRARY_DEBUG}" )
     OR P4EST_LIBRARY_DEBUG MATCHES "-NOTFOUND"
     OR SC_LIBRARY_DEBUG MATCHES "-NOTFOUND" )
-  set(_libraries P4EST_LIBRARY_OPTIMIZED SC_LIBRARY_OPTIMIZED)
+  set(_libraries
+    LIBRARIES REQUIRED P4EST_LIBRARY_OPTIMIZED SC_LIBRARY_OPTIMIZED
+    )
 else()
   set(_libraries
-    optimized P4EST_LIBRARY_OPTIMIZED SC_LIBRARY_OPTIMIZED
-    debug P4EST_LIBRARY_DEBUG SC_LIBRARY_DEBUG
-    general
+    LIBRARIES_RELEASE REQUIRED P4EST_LIBRARY_OPTIMIZED SC_LIBRARY_OPTIMIZED
+    LIBRARIES_DEBUG REQUIRED P4EST_LIBRARY_DEBUG SC_LIBRARY_DEBUG
     )
 endif()
 
@@ -199,9 +200,8 @@ if(EXISTS ${P4EST_INCLUDE_DIR}/p4est_config.h)
 endif()
 
 process_feature(P4EST
-  LIBRARIES
-    REQUIRED ${_libraries}
-    OPTIONAL LAPACK_LIBRARIES MPI_C_LIBRARIES
+  ${_libraries}
+  LIBRARIES OPTIONAL LAPACK_LIBRARIES MPI_C_LIBRARIES
   INCLUDE_DIRS
     REQUIRED P4EST_INCLUDE_DIR SC_INCLUDE_DIR
   CLEAR

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.