From 87a21ba5e6153254c8e4ba8249ee90cfd728e420 Mon Sep 17 00:00:00 2001 From: "lucas.sproule" Date: Tue, 31 Oct 2023 02:30:31 -0400 Subject: [PATCH] war crimes --- CMakeLists.txt | 7 ++++--- src/Command/CommandAdd.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index df5a0b6..5f2ed3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ project ( set(CMAKE_CXX_STANDARD 20) +set(BUILD_CURL_EXE OFF) include(FetchContent) FetchContent_Declare( @@ -29,13 +30,13 @@ FetchContent_Declare( FetchContent_Declare( curl GIT_REPOSITORY "https://github.com/curl/curl.git" - GIT_TAG "curl-8_4_0" + GIT_TAG "curl-8_3_0" ) -FetchContent_MakeAvailable(curl) FetchContent_MakeAvailable(nlohmann_json) FetchContent_MakeAvailable(cxxopts) FetchContent_MakeAvailable(tomlplusplus) +FetchContent_MakeAvailable(curl) @@ -94,8 +95,8 @@ else() endif() endif() -target_link_libraries(${PROJECT_NAME} cxxopts) target_link_libraries(${PROJECT_NAME} curl) +target_link_libraries(${PROJECT_NAME} cxxopts) target_link_libraries(${PROJECT_NAME} nlohmann_json) target_link_libraries(${PROJECT_NAME} tomlplusplus::tomlplusplus) set(SOURCE_DIR src) diff --git a/src/Command/CommandAdd.cpp b/src/Command/CommandAdd.cpp index bbff920..abb9014 100644 --- a/src/Command/CommandAdd.cpp +++ b/src/Command/CommandAdd.cpp @@ -95,7 +95,7 @@ namespace Command { std::string versionInput; std::cin >> versionInput; - int versionIndex = std::stoi(input); + int versionIndex = std::stoi(versionInput); version = versions[versionIndex]; if(checkForOverlappingDependencies(ctx, searchResults[index].name)){