Browse Source

Enable a bunch of useful CMake policies.

pull/11/head
Vladimír Vondruš 5 years ago
parent
commit
2fec9c1e5e
  1. 14
      CMakeLists.txt

14
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)

Loading…
Cancel
Save