From f1a0f211e1da2392a53f14dd0b61079f8d03c225 Mon Sep 17 00:00:00 2001 From: "Mads R. B. Kristensen" Date: Mon, 4 Nov 2024 09:28:50 +0100 Subject: [PATCH] debug: -Wl,--exclude-libs,ALL --- cpp/CMakeLists.txt | 2 ++ cpp/cmake/thirdparty/get_libcurl.cmake | 1 + 2 files changed, 3 insertions(+) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index af8365c738..6175dc53df 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -109,6 +109,8 @@ include(cmake/thirdparty/get_thread_pool.cmake) file(GLOB SOURCES "src/*.cpp") add_library(kvikio ${SOURCES}) +# target_link_options(kvikio PUBLIC "-Wl,--exclude-libs,libcurl.a") +target_link_options(kvikio PUBLIC "-Wl,--exclude-libs,ALL") add_library(kvikio::kvikio ALIAS kvikio) target_include_directories( diff --git a/cpp/cmake/thirdparty/get_libcurl.cmake b/cpp/cmake/thirdparty/get_libcurl.cmake index 5694494b9a..f0e8e57976 100644 --- a/cpp/cmake/thirdparty/get_libcurl.cmake +++ b/cpp/cmake/thirdparty/get_libcurl.cmake @@ -21,6 +21,7 @@ function(find_and_configure_libcurl) set(CACHE_HAS_BUILD_TESTING $CACHE{BUILD_TESTING}) endif() + # set(CPM_DOWNLOAD_ALL ON) rapids_cpm_find( CURL 7.87.0 GLOBAL_TARGETS libcurl