From d25245e88711a3c357cebbb8ea942b5c3c35aefb Mon Sep 17 00:00:00 2001 From: Rashad Kanavath <rashad.kanavath@c-s.fr> Date: Tue, 10 Jan 2017 12:08:17 +0100 Subject: [PATCH] SuperBuild: shark: allow extra user option to link with pthread --- SuperBuild/CMake/External_shark.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SuperBuild/CMake/External_shark.cmake b/SuperBuild/CMake/External_shark.cmake index 82521ef975..5a3a7ea13c 100644 --- a/SuperBuild/CMake/External_shark.cmake +++ b/SuperBuild/CMake/External_shark.cmake @@ -10,6 +10,14 @@ package_require_cxx11(SHARK) ADD_SUPERBUILD_CMAKE_VAR(SHARK Boost_INCLUDE_DIR) ADD_SUPERBUILD_CMAKE_VAR(SHARK BOOST_LIBRARYDIR) +#shark master branch has a fix to avoid explicit link with libs +#but tag 3.3 which we use still need a fix. +if(UNIX) + set(SHARK_SB_CONFIG_USER "" CACHE STRING "Extra options to be passed to shark cmake configure cache") + mark_as_advanced(SHARK_SB_CONFIG_USER) + list(APPEND SHARK_SB_CONFIG "${SHARK_SB_CONFIG_USER}") +endif() + ExternalProject_Add(SHARK PREFIX SHARK URL "https://github.com/Shark-ML/Shark/archive/349f29bd71c370e0f88f7fc9aa66fa5c4768fcb0.zip" -- GitLab