summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8482be6ed..728057ce8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -104,6 +104,11 @@ if(OPTION_TOOLS_ONLY)
return()
endif()
+if(APPLE)
+ # Avoid searching for headers in Frameworks, and libraries in LIBDIR.
+ set(CMAKE_FIND_FRAMEWORK LAST)
+endif()
+
# Prefer -pthread over -lpthread, which is often the better option of the two.
set(CMAKE_THREAD_PREFER_PTHREAD YES)
# Make sure we have Threads available.