From 77e8bb60c9ba859c2702b44f44f27d9212f203ed Mon Sep 17 00:00:00 2001 From: maier Date: Fri, 23 Aug 2013 19:15:23 +0000 Subject: [PATCH] CMake: Fix FindP4EST.cmake, see issue 102 git-svn-id: https://svn.dealii.org/trunk@30454 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/modules/FindP4EST.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deal.II/cmake/modules/FindP4EST.cmake b/deal.II/cmake/modules/FindP4EST.cmake index b5654ada1a..32a6f08497 100644 --- a/deal.II/cmake/modules/FindP4EST.cmake +++ b/deal.II/cmake/modules/FindP4EST.cmake @@ -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} -- 2.39.5