[cmake-developers] Possible issue with UseQt4.cmake

clinton at elemtech.com clinton at elemtech.com
Tue Dec 10 07:59:20 EST 2013


----- Original Message -----
> I noticed today that the UseQt4 module appends a lot of different data
> to the COMPILE_DEFINITIONS property via add_definitions but appends
> only one item to various COMPILE_DEFINITIONS_<CONFIG> properties.
> 
> Is this a bug in the UseQt4 module?

I don't think that is a bug.

> 
> The reason I ran across this possible issue is I am implementing a new
> version of the UseQt4 module that communicates its compile definition
> results and its include_directory results via variables rather than
> setting directory properties (which is way too blunt an instrument for
> PLplot needs since that method affects every compilation in PLplot,
> not just the minority of Qt-related ones).

These situations is why I like the target usage requirements, which could make UseQt4.cmake, or perhaps any Use*.cmake obsolete.
http://community.kde.org/Frameworks/Epics/CMake_target_usage_requirements

Clint



More information about the cmake-developers mailing list