File: FindPThreads.cmake

package info (click to toggle)
flint 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 68,996 kB
  • sloc: ansic: 915,350; asm: 14,605; python: 5,340; sh: 4,512; lisp: 2,621; makefile: 787; cpp: 341
file content (17 lines) | stat: -rw-r--r-- 680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Try to find the PThreads libraries
# PThreads_FOUND - system has PThreads lib
# PThreads_INCLUDE_DIRS - the PThreads include directory
# PThreads_LIBRARIES - Libraries needed to use PThreads

if (PThreads_INCLUDE_DIRS AND PThreads_LIBRARIES)
		# Already in cache, be silent
		set(PThreads_FIND_QUIETLY TRUE)
endif (PThreads_INCLUDE_DIRS AND PThreads_LIBRARIES)

find_path(PThreads_INCLUDE_DIRS NAMES pthread.h )
find_library(PThreads_LIBRARIES NAMES pthread pthreads libpthreads )

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PThreads DEFAULT_MSG PThreads_INCLUDE_DIRS PThreads_LIBRARIES)

mark_as_advanced(PThreads_INCLUDE_DIRS PThreads_LIBRARIES)