aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_from_bitbucket.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_from_bitbucket.cmake b/scripts/cmake/vcpkg_from_bitbucket.cmake
index a12d86b43..7eaf550bb 100644
--- a/scripts/cmake/vcpkg_from_bitbucket.cmake
+++ b/scripts/cmake/vcpkg_from_bitbucket.cmake
@@ -115,7 +115,7 @@ function(vcpkg_from_bitbucket)
string(REGEX REPLACE "\"hash\": \"([a-f0-9]+)\"" "\\1" _version ${x})
string(SUBSTRING ${_version} 0 12 _version) # Get the 12 first numbers from commit hash
else()
- set(_version ${_vdud_REF})
+ string(SUBSTRING ${_vdud_REF} 0 12 _version) # Get the 12 first numbers from commit hash
endif()
vcpkg_download_distfile(ARCHIVE