diff options
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()
+
|
