From f45e3ef20292935d240ae02547d927bc08be7aec Mon Sep 17 00:00:00 2001 From: tharun571 Date: Thu, 8 Aug 2024 09:46:20 +0530 Subject: [PATCH] Add comments, Remove unnecessary code --- CMakeLists.txt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40119047..edc7e430 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -344,15 +344,9 @@ macro(xeus_cpp_create_target target_name linkage output_name) if (MSVC) target_compile_options(${target_name} PRIVATE "/MD$<$:d>") endif() - else () - # Curl initialized specifically for xassist - find_package(CURL REQUIRED) - if (CURL_FOUND) - target_include_directories(${target_name} PRIVATE ${CURL_INCLUDE_DIRS}) - target_link_libraries(${target_name} PRIVATE ${CURL_LIBRARIES}) - endif() - - target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse) + else() + # Curl initialised specifically for xassist + target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse curl) endif() if (WIN32 OR CYGWIN)