From 5ebc69036a2ef45112c06b9aed3b4489eb0157f8 Mon Sep 17 00:00:00 2001 From: backlabs1 Date: Sat, 6 Apr 2024 04:36:17 +0000 Subject: [PATCH] Call cmake_minimum_required() before project() This fixes the following warning: ``` CMake Warning (dev) at CMakeLists.txt:1 (project): cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. ``` This is a small part of upstream OpenMW commit a40ec4edd6459e54003d6df3f1b05f2c4241f028. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 97a62ddea..757c8c333 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ -project(OpenMW) cmake_minimum_required(VERSION 3.1.0) + +project(OpenMW) + set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON)