yuzu/externals/vcpkg/ports/rtlsdr/fix-version.patch

16 lines
482 B
Diff
Raw Normal View History

2022-07-23 05:01:36 +04:00
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()