fix-pkgconfig-version.patch 571 B

12345678910111213141516
  1. diff --git a/cmake/OpusPackageVersion.cmake b/cmake/OpusPackageVersion.cmake
  2. index 447ce3b..15ebd8e 100644
  3. --- a/cmake/OpusPackageVersion.cmake
  4. +++ b/cmake/OpusPackageVersion.cmake
  5. @@ -4,7 +4,9 @@ endif()
  6. set(__opus_version INCLUDED)
  7. function(get_package_version PACKAGE_VERSION PROJECT_VERSION)
  8. -
  9. + set(PACKAGE_VERSION "0" CACHE STRING "opus package version")
  10. + set(PROJECT_VERSION "0" CACHE STRING "opus project version")
  11. + return()
  12. find_package(Git)
  13. if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_LIST_DIR}/.git")
  14. execute_process(COMMAND ${GIT_EXECUTABLE}