2015-08-19 18:50:49 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2019-06-19 08:02:13 +08:00
|
|
|
@@ -231,14 +231,7 @@
|
2018-11-14 05:50:37 +08:00
|
|
|
set (LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}" CACHE PATH "Installation path for libraries")
|
2015-08-19 18:50:49 +08:00
|
|
|
|
|
|
|
# Make a version file containing the current version from git.
|
|
|
|
-include (GetGitRevisionDescription)
|
|
|
|
-git_describe (VERSION "--tags")
|
2018-11-14 05:50:37 +08:00
|
|
|
-# If git_describe fails, use a dirty version
|
|
|
|
-if (${VERSION} MATCHES -NOTFOUND)
|
|
|
|
- set (VERSION "v1.7.1")
|
2019-06-19 08:02:13 +08:00
|
|
|
+ set (VERSION "v2.0.0")
|
2018-11-14 05:50:37 +08:00
|
|
|
- message (WARNING "Failed to retrieve UPM version with 'git describe' (using "
|
|
|
|
- "${VERSION}). Check that git is installed and this is a valid git repo.")
|
2015-08-19 18:50:49 +08:00
|
|
|
-endif ()
|
|
|
|
|
2018-11-14 05:50:37 +08:00
|
|
|
message (STATUS "UPM Version ${VERSION}")
|
2015-08-19 18:50:49 +08:00
|
|
|
|