From fe7c02b8b8b94490a8c190506acda6ba3b1c140b Mon Sep 17 00:00:00 2001
From: Tomas Pecka <peckato1@fit.cvut.cz>
Date: Sun, 25 Nov 2018 14:45:04 +0100
Subject: [PATCH] CMake: Compatibility with CMake 3.7

---
 CMake/CMakeLists_root.txt | 2 +-
 alib2gui/project.conf     | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMake/CMakeLists_root.txt b/CMake/CMakeLists_root.txt
index 75b0affb77..7d2f5a6608 100644
--- a/CMake/CMakeLists_root.txt
+++ b/CMake/CMakeLists_root.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.9)
+cmake_minimum_required(VERSION 3.7)
 
 # Project name
 project(alib2)
diff --git a/alib2gui/project.conf b/alib2gui/project.conf
index dfd77298f9..910f8a4d8e 100644
--- a/alib2gui/project.conf
+++ b/alib2gui/project.conf
@@ -12,3 +12,5 @@ project: alib2algo alib2aux
 [CMake]
 CMAKE_AUTOMOC: ON
 CMAKE_AUTOUIC: ON
+;Compatibility with cmake 3.7 (autogen)
+CMAKE_INCLUDE_CURRENT_DIR: ON
-- 
GitLab