]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Use "-pthread" as well when determining whether lapack is usable
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Jul 2013 12:48:26 +0000 (12:48 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Jul 2013 12:48:26 +0000 (12:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@29984 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_1_lapack.cmake

index 952f915930de8a79fa1257bd499dd99fd20d64f8..04ddb713585eab98f433f1d42f6a430a142789ca 100644 (file)
@@ -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()
 
 

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.