diff --git a/CMakeLists.txt b/CMakeLists.txt index 25e29a7..8bea7d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,20 @@ cmake_minimum_required(VERSION 3.4) project(MagnumBindings CXX) +# Don't restrict INTERPROCEDURAL_OPTIMIZATION only for icc on Linux +if(POLICY CMP0069) + cmake_policy(SET CMP0069 NEW) +endif() +# If CMAKE_AUTOMOC is set, all uses of corrade_add_resource() would otherwise +# complain on 3.10 that AUTOMOC is not processing GENERATED files +if(POLICY CMP0071) + cmake_policy(SET CMP0071 NEW) +endif() +# Superprojects can use just set(WITH_BLAH ON) without FORCE CACHE on 3.13+ +if(POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif() + # Use folders for nice tree in Visual Studio and XCode set_property(GLOBAL PROPERTY USE_FOLDERS ON)