mikemcquaid/CMake — comment on commit 63ebfc51e54cd296e78b2ed91ab7b6a12674a4a3
File:  line 0
By clintonstimpson:

Oh, perhaps another idea to fix this debug configuration limitation is to change install_qt4_executable() to pass the plugins into fixup_qt4_executable() plugin argument instead of calling install_qt4_plugin() itself and passing through the libs argument.

For example:
install(CODE " .... pass debug plugins into fixup_qt4_executable() .... " CONFIGURATIONS Debug)
install(CODE " .... pass release plugins into fixup_qt4_executable() .... " CONFIGURATIONS Release RelWithDebInfo MinSizeRel)

Then install_qt4_plugin() would only ever be used at install time instead of configure time. Maybe that can be simplified?