From 8ebe5e074fd5ea41dff4abf10245b79d49d5e745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 13 Nov 2024 16:07:43 +0100 Subject: [PATCH] CMake: set policies before the project() call. It's done like this in all other repos, so here it not being done is probably an error. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35c7c25..10bcf97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,8 +27,6 @@ # Matches Corrade requirement, see its root CMakeLists for more information. cmake_minimum_required(VERSION 3.5) -project(MagnumBindings CXX) - # Don't restrict INTERPROCEDURAL_OPTIMIZATION only for icc on Linux if(POLICY CMP0069) cmake_policy(SET CMP0069 NEW) @@ -53,6 +51,8 @@ if(POLICY CMP0077) cmake_policy(SET CMP0077 NEW) endif() +project(MagnumBindings CXX) + # Use folders for nice tree in Visual Studio and XCode set_property(GLOBAL PROPERTY USE_FOLDERS ON)