Branch: master

0d5ca8be 2014-09-29 10:19:11 Slávek Banko
Silence warnings on CMP0026 with CMake 3.x
M modules/TDEMacros.cmake
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 @@
 
 ################################################
 #####
+##### 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