X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=03ac969ef5bc8013ca940ded687a72cb766b654b;hp=831dabf86ed295063a4b0c2a849413895743d807;hb=7e95ff801372a9707ecf9e7a32e74d7f5d55f118;hpb=b2370f9a40dc85b57da485e97e2f9b504ad01547 diff --git a/CMakeLists.txt b/CMakeLists.txt index 831dabf8..03ac969e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,12 +127,12 @@ endif() # Setting COMPILE_DEFINITIONS_ is deprecated since CMake 3.0 in favor of generator expressions. # These have existed since CMake 2.8.10; until we depend on that, we have to explicitly enable the old policy. -if (CMAKE_MAJOR_VERSION GREATER 2) +if (POLICY CMP0043) cmake_policy(SET CMP0043 OLD) endif() # Honor visibility settings for all target types -if (CMAKE_VERSION VERSION_GREATER 3.3) +if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif()