summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLester Solbakken <lesters@yahoo-inc.com>2017-09-19 13:36:17 +0200
committerLester Solbakken <lesters@yahoo-inc.com>2017-09-19 13:36:17 +0200
commit661851a2eaa1dcced13137d2c11c7ea28388ef53 (patch)
tree86522925710936d1179546f99c86ab9c1e51a978 /CMakeLists.txt
parent67e72cce03424c0d32d1c8c0de257b488c692b4b (diff)
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 36d29ece0f1..3da07398d7a 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)