diff options
author | Lester Solbakken <lesters@yahoo-inc.com> | 2017-09-19 13:36:17 +0200 |
---|---|---|
committer | Lester Solbakken <lesters@yahoo-inc.com> | 2017-09-19 13:36:17 +0200 |
commit | 661851a2eaa1dcced13137d2c11c7ea28388ef53 (patch) | |
tree | 86522925710936d1179546f99c86ab9c1e51a978 | |
parent | 67e72cce03424c0d32d1c8c0de257b488c692b4b (diff) |
Add section in CMakeLists.txt to enable project open in CLion on OSX
-rw-r--r-- | CMakeLists.txt | 5 |
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) |