From: maier Date: Fri, 23 Aug 2013 19:15:23 +0000 (+0000) Subject: CMake: Fix FindP4EST.cmake, see issue 102 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77e8bb60c9ba859c2702b44f44f27d9212f203ed;p=dealii-svn.git CMake: Fix FindP4EST.cmake, see issue 102 git-svn-id: https://svn.dealii.org/trunk@30454 0785d39b-7218-0410-832d-ea1e28bc413d --- 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}