diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 2afde45..4f5f59e 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 )