Skip to content

Commit

Permalink
fix: fix bootstrapping vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 1, 2022
1 parent c986bb2 commit 6ebbeb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Vcpkg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ macro(run_vcpkg)
endif()
find_program(GIT_EXECUTABLE "git" REQUIRED)
execute_process(COMMAND "${GIT_EXECUTABLE}" "clone" "${_vcpkg_args_VCPKG_URL}"
WORKING_DIRECTORY ${VCPKG_PARENT_DIR})
WORKING_DIRECTORY ${VCPKG_PARENT_DIR} COMMAND_ERROR_IS_FATAL LAST)
# Run vcpkg bootstrap
if(WIN32)
execute_process(COMMAND "./vcpkg/bootstrap-vcpkg.bat" "-disableMetrics"
WORKING_DIRECTORY "${_vcpkg_args_VCPKG_DIR}")
execute_process(COMMAND "bootstrap-vcpkg.bat" "-disableMetrics" WORKING_DIRECTORY "${_vcpkg_args_VCPKG_DIR}"
COMMAND_ERROR_IS_FATAL LAST)
else()
execute_process(COMMAND "./vcpkg/bootstrap-vcpkg.sh" "-disableMetrics"
WORKING_DIRECTORY "${_vcpkg_args_VCPKG_DIR}")
execute_process(COMMAND "./bootstrap-vcpkg.sh" "-disableMetrics" WORKING_DIRECTORY "${_vcpkg_args_VCPKG_DIR}"
COMMAND_ERROR_IS_FATAL LAST)
endif()
endif()

Expand Down

0 comments on commit 6ebbeb9

Please sign in to comment.