aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--cmake/genrev.cmake2
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3aa447da0c6..5f1ca3c4b5e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,7 +31,6 @@ endif()
include(CheckCXXSourceRuns)
include(CheckIncludeFiles)
-include(EnsureVersion)
# set default buildoptions and print them
include(cmake/options.cmake)
diff --git a/cmake/genrev.cmake b/cmake/genrev.cmake
index f32f6710f41..f628755c1a6 100644
--- a/cmake/genrev.cmake
+++ b/cmake/genrev.cmake
@@ -8,6 +8,8 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+include(${CMAKE_SOURCE_DIR}/cmake/macros/EnsureVersion.cmake)
+
set(_REQUIRED_GIT_VERSION "1.7")
find_program(_GIT_EXEC