From: Matthias Maier Date: Fri, 12 Jul 2013 12:48:26 +0000 (+0000) Subject: CMake: Use "-pthread" as well when determining whether lapack is usable X-Git-Tag: v8.0.0~137 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7432af1422e9606ecba1bb01ba9dd3cf74796728;p=dealii.git CMake: Use "-pthread" as well when determining whether lapack is usable git-svn-id: https://svn.dealii.org/trunk@29984 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/configure/configure_1_lapack.cmake b/deal.II/cmake/configure/configure_1_lapack.cmake index 952f915930..04ddb71358 100644 --- a/deal.II/cmake/configure/configure_1_lapack.cmake +++ b/deal.II/cmake/configure/configure_1_lapack.cmake @@ -90,6 +90,10 @@ SET(DEAL_II_LAPACK_FUNCTIONS MACRO(CHECK_FOR_LAPACK_FUNCTIONS) SET(CMAKE_REQUIRED_LIBRARIES ${LAPACK_LIBRARIES}) ADD_FLAGS(CMAKE_REQUIRED_FLAGS "${LAPACK_LINKER_FLAGS}") + # + # Push -pthread as well: + # + ENABLE_IF_SUPPORTED(CMAKE_REQUIRED_FLAGS "-pthread") FOREACH(_func ${DEAL_II_LAPACK_FUNCTIONS}) STRING(TOUPPER ${_func} _func_uppercase) @@ -98,6 +102,7 @@ MACRO(CHECK_FOR_LAPACK_FUNCTIONS) SET(CMAKE_REQUIRED_LIBRARIES) STRIP_FLAG(CMAKE_REQUIRED_FLAGS "${LAPACK_LINKER_FLAGS}") + STRIP_FLAG(CMAKE_REQUIRED_FLAGS "-pthread") ENDMACRO()