[cmake-developers] Convention driven CMAKE_USE_PACKAGE macro

Stephen Kelly steveire at gmail.com
Sun Mar 4 18:10:26 EST 2012


Alexander Neundorf wrote:
> The question whether the standard-conforming name is FOO_INCLUDE_DIRS or
> Foo_INCLUDE_DIRS, i.e. ExactCase or UPPERCASE, is not decided.
> readme.txt is ambiguous in this point, since it uses as example
> "FindXXX.cmake", i.e. an UPPERCASE package name.
> 
> There was a thread here in August 2010:
> http://www.mail-archive.com/cmake-developers-
wChDC6UyXvPYtjvyW6yDsg at public.gmane.org/msg00128.html
> and results for what casing is used in cmake and in kdelibs here:
> http://www.mail-archive.com/cmake-developers-
wChDC6UyXvPYtjvyW6yDsg at public.gmane.org/msg00157.html

The concensus seems to be that ExactCase is used. It also makes a lot more 
sense to me for several reasons but that's off topic for this thread. It's 
unfortunate that the ambiguity didn't get resolved in general. 

For Qt5 and config files I think exact case makes even more sense because 
using config files sets ExactCase_FOUND to true if found. 

Thanks,

Steve.





More information about the cmake-developers mailing list