From b4e32dabccafb289df8404c90ec172e6db02aea5 Mon Sep 17 00:00:00 2001 From: Steffen Pankratz Date: Fri, 23 Jun 2023 19:32:48 +0200 Subject: [PATCH] Fix CMake warning: call cmake_minimum_required() before project() cmake_minimum_required() should be called prior to this top-level project() call. Signed-off-by: Steffen Pankratz --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08ece6a..d8ea9b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ # and even on the original test system, become incorrect over time. # Only choose options you want/need to squeeze every byte off the download. +CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0) # !!! FIXME: this is stupid. IF(NOT BEOS) @@ -26,8 +27,6 @@ ELSE(NOT BEOS) PROJECT(MojoSetup CXX) ENDIF(NOT BEOS) -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0) - # !!! FIXME: correct this to new policy and bump minimum cmake requirement. IF(COMMAND CMAKE_POLICY) # Use old policy when it comes to escaping macros,