diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2016-10-10 06:38:39 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2016-10-27 23:28:30 +0000 |
commit | 52da9de5c4855f0a89ae1019803327cba799b9e5 (patch) | |
tree | a5916198373c11e2a9891940341fb2e25f6cc0b4 | |
parent | 48b6c98d31c176134a72fe59ff596afa1eef0d11 (diff) |
build: clock_gettime() is in libc on BSDs
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e3f2ab8f..9fc4f5675 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,7 +181,7 @@ ELSEIF(MINGW) add_definitions(-D_WIN32_WINNT=0x0600) ELSEIF(WIN32) set(PLATFORM_LIBRARIES winmm ws2_32) -ELSE() +ELSEIF(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU|SunOS)$") set(PLATFORM_LIBRARIES rt) ENDIF (APPLE) |