]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Fix FindP4EST.cmake, see issue 102
authorMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 23 Aug 2013 19:15:23 +0000 (19:15 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 23 Aug 2013 19:15:23 +0000 (19:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@30454 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindP4EST.cmake

index b5654ada1ab99a146635265d9150b9c4d6eea4b6..32a6f08497e86f978e5a9093301da39e038d2eed 100644 (file)
@@ -120,9 +120,11 @@ MARK_AS_ADVANCED(
 
 IF(P4EST_FOUND)
 
-  IF( "${P4EST_LIBRARY_OPTIMIZED}" STREQUAL "${P4EST_LIBRARY_DEBUG}"
-      AND
-      "${SC_LIBRARY_OPTIMIZED}" STREQUAL "${SC_LIBRARY_DEBUG}" )
+  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(P4EST_LIBRARIES
       ${P4EST_LIBRARY_OPTIMIZED}
       ${SC_LIBRARY_OPTIMIZED}

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.