summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-09-29 17:19:11 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-09-29 17:19:11 +0200
commit0d5ca8bebbb638b05f1d11537ce41fcf73d10ac9 (patch)
tree3b1769f3abb66fe9d8066c42764b6d50e5c5fa3d
parent38a8a335c362b35f41603024bbf63b0d074b9a41 (diff)
downloadcmake-0d5ca8bebbb638b05f1d11537ce41fcf73d10ac9.tar.gz
cmake-0d5ca8bebbb638b05f1d11537ce41fcf73d10ac9.zip
Silence warnings on CMP0026 with CMake 3.x
-rw-r--r--modules/TDEMacros.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 2afde45..4f5f59e 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -109,6 +109,17 @@ endif( )
################################################
#####
+##### 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( <icons...> THEME <svgicons> DESTINATION <destdir> )
##### default theme: hicolor
##### default destination: ${SHARE_INSTALL_DIR}/icons