diff options
author | Chris Robinson <[email protected]> | 2008-01-11 06:54:09 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-11 06:54:09 -0800 |
commit | 2a5a5b5c1b97cfe66149bd77b4402e80f69c37c1 (patch) | |
tree | 12e8b3471a28c3135beabc82def508b70ad6d905 /CMakeLists.txt | |
parent | a97ecb8690c64a6007ad3f0e983cb8ef67b47795 (diff) |
Add Sleep wrapper
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 86fc4fd1..32f717a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -137,6 +137,11 @@ IF(NOT "${HAVE_WINDOWS_H}") MESSAGE(FATAL_ERROR "No timing function found!") ENDIF() + CHECK_FUNCTION_EXISTS(usleep HAVE_USLEEP) + IF(NOT "${HAVE_USLEEP}") + MESSAGE(FATAL_ERROR "No sleep function found!") + ENDIF() + # We need pthreads outside of Windows CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H) IF(NOT "${HAVE_PTHREAD_H}") |