Remove orphan CMake file
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 9 Jul 2013 09:39:34 +0000 (11:39 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 9 Jul 2013 10:05:02 +0000 (12:05 +0200)
This was added in Erik's original CMake commit, updated once,
and has never been used.

Change-Id: Idf920bd87e1bf37d532a5b460be64ef852c43844

cmake/FindPthreads.cmake [deleted file]

diff --git a/cmake/FindPthreads.cmake b/cmake/FindPthreads.cmake
deleted file mode 100644 (file)
index 8a08730..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-# - Find the Pthreads library
-# This module searches for the Pthreads library (including the
-# pthreads-win32 port).
-#
-# This module defines these variables:
-#
-#  PTHREADS_FOUND
-#      True if the Pthreads library was found
-#  PTHREADS_LIBRARY
-#      The location of the Pthreads library
-#  PTHREADS_INCLUDE_DIR
-#      The include path of the Pthreads library
-#  PTHREADS_DEFINITIONS
-#      Preprocessor definitions to define
-#
-# This module responds to the PTHREADS_EXCEPTION_SCHEME
-# variable on Win32 to allow the user to control the
-# library linked against.  The Pthreads-win32 port
-# provides the ability to link against a version of the
-# library with exception handling.  IT IS NOT RECOMMENDED
-# THAT YOU USE THIS because most POSIX thread implementations
-# do not support stack unwinding.
-#
-#  PTHREADS_EXCEPTION_SCHEME
-#      C  = no exceptions (default)
-#         (NOTE: This is the default scheme on most POSIX thread
-#          implementations and what you should probably be using)
-#      CE = C++ Exception Handling
-#      SE = Structure Exception Handling (MSVC only)
-#
-
-#
-# Define a default exception scheme to link against
-# and validate user choice.
-#
-IF(PTHREADS_INCLUDE_DIR)
-  # Already in cache, be silent
-  SET(PTHREADS_FIND_QUIETLY TRUE)
-ENDIF(PTHREADS_INCLUDE_DIR)
-
-
-IF(NOT DEFINED PTHREADS_EXCEPTION_SCHEME)
-    # Assign default if needed
-    SET(PTHREADS_EXCEPTION_SCHEME "C")
-ELSE(NOT DEFINED PTHREADS_EXCEPTION_SCHEME)
-    # Validate
-    IF(NOT PTHREADS_EXCEPTION_SCHEME STREQUAL "C" AND
-       NOT PTHREADS_EXCEPTION_SCHEME STREQUAL "CE" AND
-       NOT PTHREADS_EXCEPTION_SCHEME STREQUAL "SE")
-
-    MESSAGE(FATAL_ERROR "See documentation for FindPthreads.cmake, only C, CE, and SE modes are allowed")
-
-    ENDIF(NOT PTHREADS_EXCEPTION_SCHEME STREQUAL "C" AND
-          NOT PTHREADS_EXCEPTION_SCHEME STREQUAL "CE" AND
-          NOT PTHREADS_EXCEPTION_SCHEME STREQUAL "SE")
-
-     IF(NOT MSVC AND PTHREADS_EXCEPTION_SCHEME STREQUAL "SE")
-         MESSAGE(FATAL_ERROR "Structured Exception Handling is only allowed for MSVC")
-     ENDIF(NOT MSVC AND PTHREADS_EXCEPTION_SCHEME STREQUAL "SE")
-
-ENDIF(NOT DEFINED PTHREADS_EXCEPTION_SCHEME)
-
-#
-# Find the header file
-#
-FIND_PATH(PTHREADS_INCLUDE_DIR pthread.h)
-
-#
-# Find the library
-#
-SET(names)
-IF(MSVC)
-    SET(names
-            pthreadV${PTHREADS_EXCEPTION_SCHEME}2
-            pthread
-    )
-ELSEIF(MINGW)
-    SET(names
-            pthreadG${PTHREADS_EXCEPTION_SCHEME}2
-            pthread
-    )
-ELSE(MSVC) # Unix / Cygwin / Apple
-    SET(names pthread)
-ENDIF(MSVC)
-    
-FIND_LIBRARY(PTHREADS_LIBRARY ${names}
-    DOC "The Portable Threads Library")
-
-IF(PTHREADS_INCLUDE_DIR AND PTHREADS_LIBRARY)
-    SET(PTHREADS_FOUND true)
-    SET(PTHREADS_DEFINITIONS -DHAVE_PTHREAD_H)
-    SET(PTHREADS_INCLUDE_DIRS ${PTHREADS_INCLUDE_DIR})
-    SET(PTHREADS_LIBRARIES    ${PTHREADS_LIBRARY})
-ENDIF(PTHREADS_INCLUDE_DIR AND PTHREADS_LIBRARY)
-
-IF(PTHREADS_FOUND)
-    IF(NOT PTHREADS_FIND_QUIETLY)
-        MESSAGE(STATUS "Found Pthreads: ${PTHREADS_LIBRARY}")
-    ENDIF(NOT PTHREADS_FIND_QUIETLY)
-ELSE(PTHREADS_FOUND) 
-    IF(PTHREADS_FIND_REQUIRED)
-        MESSAGE(FATAL_ERROR "Could not find the Pthreads Library")
-    ENDIF(PTHREADS_FIND_REQUIRED)
-ENDIF(PTHREADS_FOUND)