Fix CMake warning for position of cmake version
authorWuzzy <Wuzzy@disroot.org>
Fri, 12 May 2023 23:15:01 +0200
changeset 15952 28b692ef6f15
parent 15951 5aed6c0b63e2
child 15953 416bca0a172c
Fix CMake warning for position of cmake version
CMakeLists.txt
--- a/CMakeLists.txt	Tue Apr 11 09:30:56 2023 +0200
+++ b/CMakeLists.txt	Fri May 12 23:15:01 2023 +0200
@@ -1,8 +1,8 @@
+cmake_minimum_required(VERSION 2.6.4)
+
 project(hedgewars)
 
-
 #initialise cmake environment
-cmake_minimum_required(VERSION 2.6.4)
 foreach(hwpolicy CMP0003 CMP0012 CMP0017 CMP0018)
     if(POLICY ${hwpolicy})
         cmake_policy(SET ${hwpolicy} NEW)