Skip to content

Commit

Permalink
guard the default vcpkg directory against multiple CMake instances us…
Browse files Browse the repository at this point in the history
…ing it
  • Loading branch information
nadiaholmquist committed Dec 28, 2023
1 parent 1cd8c16 commit 63141c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/ConfigureVcpkg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set(_DEFAULT_VCPKG_ROOT "${CMAKE_SOURCE_DIR}/vcpkg")
set(VCPKG_ROOT "${_DEFAULT_VCPKG_ROOT}" CACHE STRING "The path to the vcpkg repository")

if (VCPKG_ROOT STREQUAL "${_DEFAULT_VCPKG_ROOT}")
file(LOCK "${_DEFAULT_VCPKG_ROOT}" DIRECTORY GUARD FILE)
FetchContent_Declare(vcpkg
GIT_REPOSITORY "https://github.com/Microsoft/vcpkg.git"
GIT_TAG 2023.12.12
Expand Down

0 comments on commit 63141c0

Please sign in to comment.