aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2023-12-28 19:51:46 +0100
committerNadia Holmquist Pedersen <nadia@nhp.sh>2023-12-28 19:51:46 +0100
commit63141c086a63e4af47f4b17eaad600d44e8933fb (patch)
tree591f3d4097761bbc6809a39af488dbc529dab152 /cmake
parent1cd8c16bbb76254b4b000430244405f6182170e1 (diff)
guard the default vcpkg directory against multiple CMake instances using it
Diffstat (limited to 'cmake')
-rw-r--r--cmake/ConfigureVcpkg.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/ConfigureVcpkg.cmake b/cmake/ConfigureVcpkg.cmake
index 95cbcdb..be8f059 100644
--- a/cmake/ConfigureVcpkg.cmake
+++ b/cmake/ConfigureVcpkg.cmake
@@ -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