aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-08-20 15:19:28 +0200
committerOvahlord <dreadkiller@gmx.de>2024-08-22 23:47:21 +0200
commit6a000124352a2b1c1176c7a828693431c2070fc5 (patch)
tree76e58e4a2ea0599b94218126480a85bb8f5b9cc3
parent95714e4ecefc5a38dfd642f6b795b1b03f7cb237 (diff)
Build: Reduce required cmake version on linux
(cherry picked from commit 90eed65876c9066bc5693445a39ba09ca841cac8)
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3c0ec29fa32..63b36affe07 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,11 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-cmake_minimum_required(VERSION 3.24)
+if(WIN32)
+ cmake_minimum_required(VERSION 3.24) # required for querying windows registry with cmake_host_system_information
+else()
+ cmake_minimum_required(VERSION 3.22)
+endif()
# add this options before PROJECT keyword
set(CMAKE_DISABLE_SOURCE_CHANGES ON)