From 51806eff3d2bff65101b18ecfe8e59884a0e1ba9 Mon Sep 17 00:00:00 2001 From: maier Date: Fri, 12 Jul 2013 12:48:26 +0000 Subject: [PATCH] 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 --- deal.II/cmake/configure/configure_1_lapack.cmake | 5 +++++ 1 file changed, 5 insertions(+) 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() -- 2.39.5