diff options
| author | Billy O'Neal <bion@microsoft.com> | 2020-05-29 16:51:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-29 16:51:12 -0700 |
| commit | 0fc90d9f158fefd0112d778bebef3441ece2e130 (patch) | |
| tree | 34d6301bfc9fbba0bd7182b49b5337d0b0c24931 /ports/rtlsdr/fix-version.patch | |
| parent | cc4f93f4344367af607b8f0f637d44d6ca72f373 (diff) | |
| download | vcpkg-0fc90d9f158fefd0112d778bebef3441ece2e130.tar.gz vcpkg-0fc90d9f158fefd0112d778bebef3441ece2e130.zip | |
[rtlsdr] Fix the 'rtlsdr' package when not running from within a git tree. (#11575)
Diffstat (limited to 'ports/rtlsdr/fix-version.patch')
| -rw-r--r-- | ports/rtlsdr/fix-version.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ports/rtlsdr/fix-version.patch b/ports/rtlsdr/fix-version.patch new file mode 100644 index 000000000..854a054ab --- /dev/null +++ b/ports/rtlsdr/fix-version.patch @@ -0,0 +1,15 @@ +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()
+
|
