Message ID | 7c1601c7e351855fd720df05efc44440374792ce.1601327357.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | CMake and Visual Studio | expand |
> if(WIN32) > set(VCPKG_DIR "${CMAKE_SOURCE_DIR}/compat/vcbuild/vcpkg") > + if(NOT EXISTS ${VCPKG_DIR}) > + message("Initializinge vcpkg and building the Git's dependencies (this will take a while...)") I think you meant Initializing. (Nitpicking :) ) Thank You, Sibi Siddharthan
Hi Sibi, On Tue, 29 Sep 2020, Sibi Siddharthan wrote: > > if(WIN32) > > set(VCPKG_DIR "${CMAKE_SOURCE_DIR}/compat/vcbuild/vcpkg") > > + if(NOT EXISTS ${VCPKG_DIR}) > > + message("Initializinge vcpkg and building the Git's dependencies (this will take a while...)") > I think you meant Initializing. (Nitpicking :) ) Aw shucks! Thank you for being thorough, Dscho
diff --git a/contrib/buildsystems/CMakeLists.txt b/contrib/buildsystems/CMakeLists.txt index 13d958f5a6..6a92ec9763 100644 --- a/contrib/buildsystems/CMakeLists.txt +++ b/contrib/buildsystems/CMakeLists.txt @@ -42,6 +42,10 @@ cmake_minimum_required(VERSION 3.14) set(CMAKE_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/../..) if(WIN32) set(VCPKG_DIR "${CMAKE_SOURCE_DIR}/compat/vcbuild/vcpkg") + if(NOT EXISTS ${VCPKG_DIR}) + message("Initializinge vcpkg and building the Git's dependencies (this will take a while...)") + execute_process(COMMAND ${CMAKE_SOURCE_DIR}/compat/vcbuild/vcpkg_install.bat) + endif() list(APPEND CMAKE_PREFIX_PATH "${VCPKG_DIR}/installed/x64-windows") # In the vcpkg edition, we need this to be able to link to libcurl