mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 23:19:09 +08:00
16 lines
482 B
Diff
16 lines
482 B
Diff
|
diff --git a/cmake/modules/Version.cmake b/cmake/modules/Version.cmake
|
||
|
index 2d4e76d..6acffe2 100644
|
||
|
--- a/cmake/modules/Version.cmake
|
||
|
+++ b/cmake/modules/Version.cmake
|
||
|
@@ -39,7 +39,9 @@ if(GIT_FOUND)
|
||
|
OUTPUT_VARIABLE GIT_DESCRIBE OUTPUT_STRIP_TRAILING_WHITESPACE
|
||
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||
|
)
|
||
|
-else()
|
||
|
+endif()
|
||
|
+
|
||
|
+if ("${GIT_DESCRIBE}" STREQUAL "")
|
||
|
set(GIT_DESCRIBE "v${MAJOR_VERSION}.${MINOR_VERSION}.x-xxx-xunknown")
|
||
|
endif()
|
||
|
|