Repository :
https://github.com/colorer/Colorer-library
On branch : change_strings
Link :
https://github.com/colorer/Colorer-library/commit/33dc89efbb7b676c7492a72451b749fb0d74f97e
>---------------------------------------------------------------
commit 33dc89efbb7b676c7492a72451b749fb0d74f97e
Author: Aleksey Dobrunov <
cta...@ctapmex.com>
Date: Sun Mar 31 11:12:36 2024 +0500
support old version of cmake
>---------------------------------------------------------------
33dc89efbb7b676c7492a72451b749fb0d74f97e
CMakeLists.txt | 14 ++++++++------
tools/colorer/CMakeLists.txt | 1 -
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e57852a..70fe413 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,13 +1,15 @@
-cmake_minimum_required(VERSION 3.15)
+cmake_minimum_required(VERSION 3.10)
#====================================================
# Policy
#====================================================
-# enable CMAKE_MSVC_RUNTIME_LIBRARY
-cmake_policy(SET CMP0091 NEW)
-# enable <LIB>_ROOT
-cmake_policy(SET CMP0074 NEW)
-cmake_policy(SET CMP0115 OLD)
+if(CMAKE_VERSION VERSION_GREATER 3.15)
+ # enable CMAKE_MSVC_RUNTIME_LIBRARY
+ cmake_policy(SET CMP0091 NEW)
+ # enable <LIB>_ROOT
+ cmake_policy(SET CMP0074 NEW)
+ cmake_policy(SET CMP0115 OLD)
+endif()
#====================================================
# Extract version
#====================================================
diff --git a/tools/colorer/CMakeLists.txt b/tools/colorer/CMakeLists.txt
index d4bd428..3592166 100644
--- a/tools/colorer/CMakeLists.txt
+++ b/tools/colorer/CMakeLists.txt
@@ -1,4 +1,3 @@
-cmake_minimum_required(VERSION 3.15)
project(consoletools VERSION ${COLORER_VERSION} LANGUAGES CXX C)
#====================================================