ecm_qt_declare_logging_category: improve error message when using without including

Review Request #127432 - Created March 20, 2016 and submitted

Information
David Faure
extra-cmake-modules
master
9fb089e...
Reviewers
extracmakemodules
skelly
If one subdir in the project includes this file, all others can use the function
but they don't see the value of the variable, which leads to a strange error

CMake Error at ECM/modules/ECMQtDeclareLoggingCategory.cmake:114 (configure_file):
  configure_file input location <srcdir> is a directory but a file was expected.

Happened in KIO, with kio/gui doing include+function call, and then adding
function call in kio/widgets.

As described in above. Got the better error message after the fix.

Stephen Kelly
Stephen Kelly
David Faure
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit f7c1e8d57f84d0883a2a7683fd59ecc990a03de1 by David Faure to branch master.
Loading...