]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove an obsolete test in configure_1_threads.cmake:
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Dec 2012 18:13:29 +0000 (18:13 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Dec 2012 18:13:29 +0000 (18:13 +0000)
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

deal.II/cmake/configure/configure_1_threads.cmake

index 325b6d395fe0b53fb2c932f1c9828f71ff4371d3..5a69e99707fd498b15c1c989fcc168934c007bb6 100644 (file)
@@ -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()
 

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.