2023-04-25 08:06:22 +08:00
|
|
|
diff --git a/cmake/OpusPackageVersion.cmake b/cmake/OpusPackageVersion.cmake
|
|
|
|
index 447ce3b..15ebd8e 100644
|
|
|
|
--- a/cmake/OpusPackageVersion.cmake
|
|
|
|
+++ b/cmake/OpusPackageVersion.cmake
|
|
|
|
@@ -4,7 +4,9 @@ endif()
|
|
|
|
set(__opus_version INCLUDED)
|
2022-08-18 20:01:55 +00:00
|
|
|
|
2023-04-25 08:06:22 +08:00
|
|
|
function(get_package_version PACKAGE_VERSION PROJECT_VERSION)
|
|
|
|
-
|
2022-08-18 20:01:55 +00:00
|
|
|
+ set(PACKAGE_VERSION "0" CACHE STRING "opus package version")
|
2023-04-25 08:06:22 +08:00
|
|
|
+ set(PROJECT_VERSION "0" CACHE STRING "opus project version")
|
2022-08-18 20:01:55 +00:00
|
|
|
+ return()
|
|
|
|
find_package(Git)
|
2023-04-25 08:06:22 +08:00
|
|
|
if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_LIST_DIR}/.git")
|
|
|
|
execute_process(COMMAND ${GIT_EXECUTABLE}
|