From 58c06dffdec2868d45c6c5455be2a9b0f022a244 Mon Sep 17 00:00:00 2001 From: Guilherme Amadio <amadio@cern.ch> Date: Tue, 9 Jul 2019 11:40:13 +0200 Subject: [PATCH] math/mathmore: link privately to GSL This is necessary to avoid ROOT's installed cmake modules to point to the build directory when using builtin GSL, since $GSL_LIBRARIES is the full path to <BINARY_DIR>/lib/libgsl.so when using builtin GSL. --- math/mathmore/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/math/mathmore/CMakeLists.txt b/math/mathmore/CMakeLists.txt index 7777e7a6f0e..6eefc882c52 100644 --- a/math/mathmore/CMakeLists.txt +++ b/math/mathmore/CMakeLists.txt @@ -78,15 +78,13 @@ SOURCES src/cblas.cxx LINKDEF Math/LinkDef.h - LIBRARIES - ${GSL_LIBRARIES} DEPENDENCIES MathCore BUILTINS GSL ) -target_include_directories(MathMore PUBLIC ${GSL_INCLUDE_DIR}) -target_link_libraries(MathMore PUBLIC ${GSL_LIBRARIES}) +target_include_directories(MathMore PRIVATE ${GSL_INCLUDE_DIR}) +target_link_libraries(MathMore PRIVATE ${GSL_LIBRARIES}) ROOT_ADD_TEST_SUBDIRECTORY(test) -- GitLab