diff options
author | Mike McQuaid <mike@mikemcquaid.com> | 2011-10-28 17:33:21 +0100 |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-11-01 13:54:35 -0400 |
commit | 467ee368402b73756ac1b662b86cd0eee95bbe07 (patch) | |
tree | 86523c1becd4e5bf5dd73d3a357bb8a8e9916944 /Modules/DeployQt4.cmake | |
parent | 4571ea6e4d0ecbf25ac7cfa63715cc931f0f17d0 (diff) | |
download | cmake-467ee368402b73756ac1b662b86cd0eee95bbe07.tar.gz |
Check plugin variables are defined before warning.
Diffstat (limited to 'Modules/DeployQt4.cmake')
-rw-r--r-- | Modules/DeployQt4.cmake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/DeployQt4.cmake b/Modules/DeployQt4.cmake index ef8dd1f1ab..4bf1b6c4ba 100644 --- a/Modules/DeployQt4.cmake +++ b/Modules/DeployQt4.cmake @@ -225,9 +225,11 @@ function(install_qt4_plugin plugin executable copy installed_plugin_path_var) else() string(TOUPPER "QT_${plugin}_PLUGIN" plugin_var) endif() - set(plugin_release "${${plugin_var}_RELEASE}") - set(plugin_debug "${${plugin_var}_DEBUG}") - if(NOT EXISTS "${plugin_release}" AND NOT EXISTS "${plugin_debug}") + set(plugin_release_var "${plugin_var}_RELEASE") + set(plugin_debug_var "${plugin_var}_DEBUG") + set(plugin_release "${${plugin_release_var}}") + set(plugin_debug "${${plugin_debug_var}}") + if(DEFINED "${plugin_release_var}" AND DEFINED "${plugin_debug_var}" AND NOT EXISTS "${plugin_release}" AND NOT EXISTS "${plugin_debug}") message(WARNING "Qt plugin \"${plugin}\" not recognized or found.") endif() install_qt4_plugin_path("${plugin_release}" "${executable}" "${copy}" "${installed_plugin_path_var}" "${plugins_dir}" "${component}" "Release|RelWithDebInfo|MinSizeRel") |