Skip to content

Commit

Permalink
war crimes
Browse files Browse the repository at this point in the history
  • Loading branch information
lsproule committed Oct 31, 2023
1 parent a5a53d9 commit 87a21ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ project (

set(CMAKE_CXX_STANDARD 20)

set(BUILD_CURL_EXE OFF)
include(FetchContent)

FetchContent_Declare(
Expand All @@ -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)



Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Command/CommandAdd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)){
Expand Down

0 comments on commit 87a21ba

Please sign in to comment.