cmake: improve spacing in operator<< overloads
Use QDebugStateSaver as Qt documentation recommends and qtbase/src/corelib/io/qdebug.h does since https://code.qt.io/cgit/qt/qtbase.git/commit/?id=737635fa56f5e4f50dabb495a5b8087e908b4713 Before this commit the code CMakeFile ff; qCritical() << 'b' << ff << 'e'; qCritical().nospace() << 'b' << ff << 'e'; printed: b CMakeFile(-I QVector() , -F QVector() , -D QHash() , "" ) e bCMakeFile(-IQVector(), -FQVector(), -DQHash(), "")e At this commit: b CMakeFile(-I QVector(), -F QVector(), -D QHash(), "") e bCMakeFile(-I QVector(), -F QVector(), -D QHash(), "")e Print CMakeTarget without spaces, for example: CMakeTarget::Custom:"My target" to underscore that a single object is printed.
Please register or sign in to comment