summaryrefslogtreecommitdiffstats
path: root/cmake/deps.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/deps.cmake')
-rw-r--r--cmake/deps.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmake/deps.cmake b/cmake/deps.cmake
index d9dff1e..ea5a0a0 100644
--- a/cmake/deps.cmake
+++ b/cmake/deps.cmake
@@ -1,11 +1,11 @@
-find_package(BISON 2.5 REQUIRED)
+set(PTHREAD_CFLAGS -pthread)
+
+if(NOT DARWIN)
+ set(PTHREAD_LDFLAGS -pthread)
+endif(NOT DARWIN)
-set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
-find_package(Threads)
-if(NOT CMAKE_USE_PTHREADS_INIT)
- MESSAGE(FATAL_ERROR "No pthread support found.")
-endif(NOT CMAKE_USE_PTHREADS_INIT)
+find_package(BISON 2.5 REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(UECC REQUIRED libuecc>=3)