From fd91f2b33b3c65f13702aea7d3ee10d5c70e95f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 29 Sep 2014 17:19:11 +0200 Subject: [PATCH] Silence warnings on CMP0026 with CMake 3.x (cherry picked from commit 0d5ca8bebbb638b05f1d11537ce41fcf73d10ac9) --- modules/TDEMacros.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index c1cd413..008d1dc 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -107,6 +107,17 @@ endif( ) ########### slave part ends here ############### +################################################ +##### +##### CMP0026 states we should not read the LOCATION property of a target, +##### and should be using generators instead. We can't do that here however +##### because we need the value of the property at configure time. + +if( POLICY CMP0026 ) + cmake_policy( SET CMP0026 OLD ) +endif( POLICY CMP0026 ) + + ################################################ ##### ##### tde_install_icons( THEME DESTINATION )