From: Matthias Maier Date: Wed, 5 Dec 2012 18:13:29 +0000 (+0000) Subject: Remove an obsolete test in configure_1_threads.cmake: X-Git-Tag: v8.0.0~1079^2~217 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28216a0980ddfc4e99c9023bcc90badfc5042b81;p=dealii.git Remove an obsolete test in configure_1_threads.cmake: With -pthread all necessary preprocessor definitions should be already set. git-svn-id: https://svn.dealii.org/branches/branch_cmake@27768 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/configure/configure_1_threads.cmake b/deal.II/cmake/configure/configure_1_threads.cmake index 325b6d395f..5a69e99707 100644 --- a/deal.II/cmake/configure/configure_1_threads.cmake +++ b/deal.II/cmake/configure/configure_1_threads.cmake @@ -86,27 +86,6 @@ MACRO(SETUP_THREADING var) ENDIF() - # - # In some cases, -threads (or whatever else command line option) - # switches on some preprocessor flags. If this is not the case, - # then define them explicitely. - # - ADD_FLAGS(CMAKE_REQUIRED_FLAGS "${CMAKE_THREAD_LIBS_INIT}") - CHECK_CXX_SOURCE_COMPILES( - " - #if !defined (_REENTRANT) && !defined (_THREAD_SAFE) - # error Neither _REENTRANT nor _THREAD_SAFE were defined. - nonsense - #endif - int main(){ return 0; } - " - DEAL_II_HAVE_MT_DEFINITIONS) - STRIP_FLAG(CMAKE_REQUIRED_FLAGS "${CMAKE_THREAD_LIBS_INIT}") - - IF(NOT DEAL_II_HAVE_MT_DEFINITIONS) - LIST(APPEND DEAL_II_DEFINITIONS "_REENTRANT" "_THREAD_SAFE") - ENDIF() - ENDIF(Threads_FOUND) ENDMACRO()