summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-09-19 18:45:28 +0200
committerGitHub <noreply@github.com>2017-09-19 18:45:28 +0200
commitcbd12c3b9baf630c216c3957d2d31f24ba32c399 (patch)
tree096756aff2574ff2640ff7c5493759f3650c88f9 /CMakeLists.txt
parenta9a524f03b8e57848d73a358e73c9a52d7d5b8e0 (diff)
parent661851a2eaa1dcced13137d2c11c7ea28388ef53 (diff)
Merge pull request #3447 from vespa-engine/lesters/add-osx-clion-hack
Add section in CMakeLists.txt to enable project open in CLion on OSX
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a0fadafaa63..413d232c00d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,11 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(vespa CXX C)
+# allows import of project in CLion on OSX
+if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ set(CMAKE_THREAD_LIBS_INIT "-lpthread")
+endif()
+
# TODO: Move this to where it's actually needed
find_package(JNI REQUIRED)