Skip to content

Commit

Permalink
[CMake] Eliminate duplicate linked libs
Browse files Browse the repository at this point in the history
  • Loading branch information
dpiparo committed Sep 23, 2023
1 parent dae23db commit b9d6ebc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/rootcling_stage1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 1 addition & 2 deletions net/auth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ ROOT_STANDARD_LIBRARY_PACKAGE(RootAuth
RIO
)

target_link_libraries(RootAuth PRIVATE rsa $<$<PLATFORM_ID:Linux>:crypt>)
target_link_libraries(RootAuth PRIVATE rsa $<$<PLATFORM_ID:FreeBSD>:crypt>)
target_link_libraries(RootAuth PRIVATE rsa $<$<PLATFORM_ID:Linux>:crypt> $<$<PLATFORM_ID:FreeBSD>:crypt>)

0 comments on commit b9d6ebc

Please sign in to comment.