From 40990d686ff9c1ddd610590802ae6792f6a60f41 Mon Sep 17 00:00:00 2001 From: "j.spijker@ultimaker.com" Date: Tue, 7 Jun 2022 16:28:55 +0200 Subject: [PATCH] Set cmake policies for MSVC flags Although not used in this project. This policy is needed by our cura-build-environment because the conan_toolchain requires this to be set. Since we use CMake for all our repo's even pure Python or resource repos such as this, we need to set in regardless. Contributes to CURA-9365 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f61737fbcf..9d6e3c709b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ # Copyright (c) 2022 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. +# For MSVC flags, will be ignored on non-Windows OS's and this project in general. Only needed for cura-build-environment. +cmake_policy(SET CMP0091 NEW) project(cura) cmake_minimum_required(VERSION 3.18)