diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-09-19 18:45:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-19 18:45:28 +0200 |
commit | cbd12c3b9baf630c216c3957d2d31f24ba32c399 (patch) | |
tree | 096756aff2574ff2640ff7c5493759f3650c88f9 /CMakeLists.txt | |
parent | a9a524f03b8e57848d73a358e73c9a52d7d5b8e0 (diff) | |
parent | 661851a2eaa1dcced13137d2c11c7ea28388ef53 (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.txt | 5 |
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) |