Browse Source

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.
next
Vladimír Vondruš 1 year ago
parent
commit
8ebe5e074f
  1. 4
      CMakeLists.txt

4
CMakeLists.txt

@ -27,8 +27,6 @@
# Matches Corrade requirement, see its root CMakeLists for more information. # Matches Corrade requirement, see its root CMakeLists for more information.
cmake_minimum_required(VERSION 3.5) cmake_minimum_required(VERSION 3.5)
project(MagnumBindings CXX)
# Don't restrict INTERPROCEDURAL_OPTIMIZATION only for icc on Linux # Don't restrict INTERPROCEDURAL_OPTIMIZATION only for icc on Linux
if(POLICY CMP0069) if(POLICY CMP0069)
cmake_policy(SET CMP0069 NEW) cmake_policy(SET CMP0069 NEW)
@ -53,6 +51,8 @@ if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW) cmake_policy(SET CMP0077 NEW)
endif() endif()
project(MagnumBindings CXX)
# Use folders for nice tree in Visual Studio and XCode # Use folders for nice tree in Visual Studio and XCode
set_property(GLOBAL PROPERTY USE_FOLDERS ON) set_property(GLOBAL PROPERTY USE_FOLDERS ON)

Loading…
Cancel
Save