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

So it could be something like this:
if(QT_QTCORE_LIBRARY_DEBUG AND QT_QTCORE_LIBRARY_RELEASE AND CMAKE_CONFIGURATION_TYPES)
.. check to see if Debug is being installed and give a message about this being unsupported...
endif()