WG: AW: AW: [CMake] AW: Wrong interpretation of "optimized" and "debug" Qt-libs in TARGET_LINK_LIBRARIES

Brandon J. Van Every bvanevery at gmail.com
Tue Nov 28 16:03:24 EST 2006


wedekind wrote:
> Hello Bill,
>
>   
>> The Find should be used all the time, because someone might install qt
>> in a different place, and you
>> want that to work.  If you hard code the place in the CMakeLists.txt it
>> will only work on some systems.
>>     
>
> Of course, you are right to advise me to use FIND. But I am not using CMake
> to distribute source-packages of my software. I only use CMake to build the
> software "locally" and to create binary distribution packages from these
> builds. So I can control the directory where to find the qt-lib for
> building. The user of the binary package needs to make the qt-lib detectable
> by the application or use the qt-lib distributed with the software.
>   

So you are the only person who ever builds your software?  If other 
people have to build your stuff, you're making it a PITA for them, 
having to remember precisely what Qt directory to use.  All this 
knowledge is locked up in your head, or in your docs, which nobody wants 
to read for such a trivial issue.  If you ever pass the baton of 
maintenance on to someone else, people are not going to thank you.


Cheers,
Brandon Van Every

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20061128/45275b86/attachment.html


More information about the CMake mailing list