From 32f8696511d866fa02493f1b3d4984dee0178b27 Mon Sep 17 00:00:00 2001 From: "Mads R. B. Kristensen" Date: Sun, 3 Nov 2024 16:07:23 +0100 Subject: [PATCH] debug --- cpp/CMakeLists.txt | 1 + cpp/cmake/thirdparty/get_libcurl.cmake | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index b9f98a5d44..cb0a0492fc 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -109,6 +109,7 @@ include(cmake/thirdparty/get_thread_pool.cmake) file(GLOB SOURCES "src/*.cpp") add_library(kvikio ${SOURCES}) +target_link_options(kvikio PRIVATE "-Wl,--exclude-libs,libcurl.a") 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 434210c0ea..5694494b9a 100644 --- a/cpp/cmake/thirdparty/get_libcurl.cmake +++ b/cpp/cmake/thirdparty/get_libcurl.cmake @@ -29,7 +29,7 @@ function(find_and_configure_libcurl) CPM_ARGS GIT_REPOSITORY https://github.com/curl/curl GIT_TAG curl-7_87_0 - OPTIONS "BUILD_CURL_EXE OFF" "BUILD_SHARED_LIBS ON" "BUILD_TESTING OFF" "CURL_USE_LIBPSL OFF" + OPTIONS "BUILD_CURL_EXE OFF" "BUILD_SHARED_LIBS OFF" "BUILD_TESTING OFF" "CURL_USE_LIBPSL OFF" "CURL_DISABLE_LDAP ON" "CMAKE_POSITION_INDEPENDENT_CODE ON" ) if(DEFINED CACHE_HAS_BUILD_TESTING)