diff options
author | Brad King <brad.king@kitware.com> | 2005-04-26 17:11:48 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-26 17:11:48 -0400 |
commit | c6e15f5ddfd707e5df890695a0bfe4d142c6d18f (patch) | |
tree | 6335cecb6b4bb066496b3a8a1049f25bfd174607 /Modules/FindThreads.cmake | |
parent | d6d91ac89f9bce50c85cb72208e7dba64927332b (diff) | |
download | cmake-c6e15f5ddfd707e5df890695a0bfe4d142c6d18f.tar.gz |
BUG: Fix try-compile for sys/prctl.h. It needs to include sys/types.h first according to the man page.
Diffstat (limited to 'Modules/FindThreads.cmake')
-rw-r--r-- | Modules/FindThreads.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake index e0bc480887..af2801bf9a 100644 --- a/Modules/FindThreads.cmake +++ b/Modules/FindThreads.cmake @@ -7,11 +7,12 @@ # CMAKE_HP_PTHREADS_INIT - are we using hp pthreads INCLUDE (CheckIncludeFile) +INCLUDE (CheckIncludeFiles) INCLUDE (CheckLibraryExists) # Do we have sproc? IF(CMAKE_SYSTEM MATCHES IRIX) - CHECK_INCLUDE_FILE("sys/prctl.h" CMAKE_HAVE_SPROC_H) + CHECK_INCLUDE_FILES("sys/types.h;sys/prctl.h" CMAKE_HAVE_SPROC_H) ENDIF(CMAKE_SYSTEM MATCHES IRIX) IF(CMAKE_HAVE_SPROC_H) |