[CMake] Some minor issues for 2.6.0-RC-8

Bill Hoffman bill.hoffman at kitware.com
Fri Apr 18 15:13:59 EDT 2008


Alan W. Irwin wrote:
> On 2008-04-18 10:35-0400 Bill Hoffman wrote:
> 
>> Alan W. Irwin wrote:
>>>
>>> (2) In CMP0003 OLD mode, the -pthread linker option triggers the 
>>> warning.
>>> That is obviously incorrect, and only a list of actual libraries 
>>> (specified
>>> only by -l options?) should trigger the warning.
>> I will look at the -pthread case, since it can not depend on a -L.
> 
> Thanks.  However, I assume -pthread is just one example of many
> compiler/linker options that have nothing to do with library location so I
> suggest it might be easier to use a whitelist approach (-l, etc. accepted)
> rather than a blacklist (-pthread, etc. rejected) approach.
> 
Yes, currently, it excludes -framework, and I thought I had made it only 
error on -l, but I must have lost that change along the way.

> 
> Bill, I know at this stage you are probably sorry you had any CMP0003
> warnings at all, but I want to thank you for making this effort since the
> information in these warning messages is quite helpful.
> 

I think I am just tired of this one, sorry. :) If you can convince Brad 
or Ken to make the change that would be fine with me.  Basically, I/we 
want people to set CMP0003 to NEW or set the minimum required cmake to 
2.6, and if it links for them they are done.   I am more concerned with 
users than developers. If a user builds some existing package with CMake 
that was released prior to CMP0003, I don't want them to get blasted 
with warnings, and I want it to just work.  That is what we have now.

-Bill


-Bill


More information about the CMake mailing list