diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f9c807e9..673806bd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -315,7 +315,10 @@ CHECK_INCLUDE_FILES(ucontext.h HAVE_UCONTEXT_H) CHECK_INCLUDE_FILES(sys/ucontext.h HAVE_SYS_UCONTEXT_H) # OSX specific # Check platform API -CHECK_FUNCTION_EXISTS(setproctitle HAVE_SETPROCTITLE) +IF(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux") + # setproctitle is broken badly in Linux, never try it + CHECK_FUNCTION_EXISTS(setproctitle HAVE_SETPROCTITLE) +ENDIF() CHECK_FUNCTION_EXISTS(getpagesize HAVE_GETPAGESIZE) CHECK_FUNCTION_EXISTS(nanosleep HAVE_NANOSLEEP) CHECK_FUNCTION_EXISTS(flock HAVE_FLOCK) |