summaryrefslogtreecommitdiff
path: root/cmake/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/FindVersion.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/scripts/FindVersion.cmake b/cmake/scripts/FindVersion.cmake
index ebbe58244..6e4a2b390 100644
--- a/cmake/scripts/FindVersion.cmake
+++ b/cmake/scripts/FindVersion.cmake
@@ -1,5 +1,15 @@
cmake_minimum_required(VERSION 3.5)
+if(NOT REV_MAJOR)
+ set(REV_MAJOR 0)
+endif()
+if(NOT REV_MINOR)
+ set(REV_MINOR 0)
+endif()
+if(NOT REV_BUILD)
+ set(REV_BUILD 0)
+endif()
+
#
# Finds the current version of the current folder.
#