[cmake-developers] EXPORT_NAME-genex

Stephen Kelly steveire at gmail.com
Wed May 22 18:08:28 EDT 2013


Alexander Neundorf wrote
> 
>> So, I don't think we should pretent they don't exist, or try to hide the
>> fact that they exist.
> 
> How is this related to using the target names directly ?

If he really wants the location of the binary, he needs to use 

 get_target_property(loc Qt4::QtUiTools LOCATION)

Using

 get_target_property(loc ${QT_UITOOLS_LIBRARY} LOCATION)

could have unpredictable results if that variable becomes a list of things. 
For consistency within a project, the imported target name can be used 
everywhere.

Thanks,

Steve.





More information about the cmake-developers mailing list