Browse Source

CMake: order policies by number.

pull/218/head
Vladimír Vondruš 9 years ago
parent
commit
726eec73e6
  1. 10
      CMakeLists.txt

10
CMakeLists.txt

@ -32,14 +32,14 @@ if(NOT CMAKE_VERSION VERSION_LESS 3.4.0)
endif() endif()
project(Magnum ${LANG}) project(Magnum ${LANG})
# CMake policies: enable MACOSX_RPATH by default # CMake policies: don't treat imported targets with :: as files
if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif()
# Don't treat imported targets with :: as files
if(POLICY CMP0028) if(POLICY CMP0028)
cmake_policy(SET CMP0028 NEW) cmake_policy(SET CMP0028 NEW)
endif() 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 # 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