From 726eec73e63e566586f28f93bbc2b23e3ebc5c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 3 Oct 2017 12:04:52 +0200 Subject: [PATCH] CMake: order policies by number. --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 817c50944..2990218e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,14 +32,14 @@ if(NOT CMAKE_VERSION VERSION_LESS 3.4.0) endif() project(Magnum ${LANG}) -# CMake policies: enable MACOSX_RPATH by default -if(POLICY CMP0042) - cmake_policy(SET CMP0042 NEW) -endif() -# Don't treat imported targets with :: as files +# CMake policies: don't treat imported targets with :: as files if(POLICY CMP0028) cmake_policy(SET CMP0028 NEW) endif() +# Enable MACOSX_RPATH by default +if(POLICY CMP0042) + cmake_policy(SET CMP0042 NEW) +endif() # Use folders for nice tree in Visual Studio and XCode set_property(GLOBAL PROPERTY USE_FOLDERS ON)