swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453
Tip revision: 4f7fea49875b1b3c29187ee427c58289282982b6 authored by Boucman on 13 April 2013, 18:10:51 UTC
Merge remote-tracking branch 'origin/master' into lua
Merge remote-tracking branch 'origin/master' into lua
Tip revision: 4f7fea4
FindPThread.cmake
# - Find the native pthreads includes and library
#
# This module defines
# PTHREAD_INCLUDE_DIR, where to find sqlite3.h, etc.
# PTHREAD_LIBRARIES, the libraries to link against to use sqlite3.
# PTHREAD_FOUND, If false, do not try to use sqlite3.
# also defined, but not for general use are
# PTHREAD_LIBRARY, where to find the sqlite3 library.
#=============================================================================
# Copyright 2010 henrik andersson
#=============================================================================
SET(PTHREAD_FIND_REQUIRED ${PThread_FIND_REQUIRED})
find_path(PTHREAD_INCLUDE_DIR pthread.h)
mark_as_advanced(PTHREAD_INCLUDE_DIR)
set(PTHREAD_NAMES ${PTHREAD_NAMES} pthread libpthread)
find_library(PTHREAD_LIBRARY NAMES ${PTHREAD_NAMES} )
mark_as_advanced(PTHREAD_LIBRARY)
# handle the QUIETLY and REQUIRED arguments and set PTHREAD_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PThread DEFAULT_MSG PTHREAD_LIBRARY PTHREAD_INCLUDE_DIR)
IF(PTHREAD_FOUND)
SET(PThread_LIBRARIES ${PTHREAD_LIBRARY})
SET(PThread_INCLUDE_DIRS ${PTHREAD_INCLUDE_DIR})
ENDIF(PTHREAD_FOUND)