From b9d6ebc04cc5a17f5dd50d268c1719152588fc71 Mon Sep 17 00:00:00 2001 From: Danilo Piparo Date: Fri, 22 Sep 2023 09:42:40 +0200 Subject: [PATCH] [CMake] Eliminate duplicate linked libs --- core/rootcling_stage1/CMakeLists.txt | 4 +++- net/auth/CMakeLists.txt | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/rootcling_stage1/CMakeLists.txt b/core/rootcling_stage1/CMakeLists.txt index a934718bf0087..f448fcb6241a0 100644 --- a/core/rootcling_stage1/CMakeLists.txt +++ b/core/rootcling_stage1/CMakeLists.txt @@ -17,7 +17,9 @@ else() endif() endif() -if(NOT builtin_clang) +if(builtin_clang) + set(CLING_LIBRARIES "clingMetaProcessor") +else() list(APPEND CLING_LIBRARIES ${CLING_DEPEND_LIBS}) link_directories("${LLVM_LIBRARY_DIR}") endif() diff --git a/net/auth/CMakeLists.txt b/net/auth/CMakeLists.txt index a98e659ec8649..95f635cbb68bd 100644 --- a/net/auth/CMakeLists.txt +++ b/net/auth/CMakeLists.txt @@ -32,5 +32,4 @@ ROOT_STANDARD_LIBRARY_PACKAGE(RootAuth RIO ) -target_link_libraries(RootAuth PRIVATE rsa $<$:crypt>) -target_link_libraries(RootAuth PRIVATE rsa $<$:crypt>) +target_link_libraries(RootAuth PRIVATE rsa $<$:crypt> $<$:crypt>)