CMake produces a mixed debug and release build
I have a project that uses Qt 5.7 and CMake 3.6.2. I build using "cmake --build . --config Release", invoke windeployqt to gather the Qt dependencies and then use cpack to zip it all up. When I run the application it fails complaining that it can't find qt5printsupportd. This is odd because I built with Release settings. If I add qt5printsupportd it fails complaining about qt5widgetsd. If I manually add all of the debug libs to the directory the application starts, but quickly fails with a "must create a Application before a QWidget" error. I believe this error often indicates mixed libraries.
Compiler is Visual Studio 2013, running on Windows 7.
Any idea on what I am doing wrong?
Is '-config Release' a valid command line option? I use -DCMAKE_BUILD_TYPE=Release