Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj.spijker@ultimaker.com <jelle spijker>2022-06-07 17:28:55 +0300
committerJelle Spijker <j.spijker@ultimaker.com>2022-06-07 17:28:55 +0300
commit40990d686ff9c1ddd610590802ae6792f6a60f41 (patch)
tree69c3893fcba626d34423e346c6bcc5567a27dcd4 /CMakeLists.txt
parentfb3f065fe0642300219d92b05d8b6cc1b305cce4 (diff)
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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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)