From 6d38bec27802444893e9492d6dfcd40697873d2d Mon Sep 17 00:00:00 2001 From: "Mads R. B. Kristensen" Date: Mon, 4 Nov 2024 08:46:34 +0100 Subject: [PATCH] debug: BUILD_SHARED_LIBS ON --- cpp/CMakeLists.txt | 1 + cpp/cmake/thirdparty/get_libcurl.cmake | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index af8365c738..eeabc505bb 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 PUBLIC "-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 5694494b9a..2f5ef232f3 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 @@ -29,7 +30,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 OFF" "BUILD_TESTING OFF" "CURL_USE_LIBPSL OFF" + OPTIONS "BUILD_CURL_EXE OFF" "BUILD_SHARED_LIBS ON" "BUILD_TESTING OFF" "CURL_USE_LIBPSL OFF" "CURL_DISABLE_LDAP ON" "CMAKE_POSITION_INDEPENDENT_CODE ON" ) if(DEFINED CACHE_HAS_BUILD_TESTING)