[cmake-developers] Suggestion: CMAKE_TOOLCHAIN_FILE warning improvement

Stephen Kelly steveire at gmail.com
Wed Apr 10 07:20:18 EDT 2013


Laszlo Papp wrote:

> Hi,
> 
> Just found this post from Brad:
> http://www.cmake.org/pipermail/cmake/2011-February/042556.html
> 
> I would suggest to improve the warning message. It is not exactly clear
> why that happens to a user like me.

My colleague saw this warning in his cmake output when he was testing a 
toolchain file. After seeing it, he didn't even try the build, he just told 
me the toolchain file was broken. 

I told him about this warning being bogus, he ran the build, and of course 
it worked :). 

Is there any reason this variable shouldn't be special-cased in the unused 
variable handling? If the special case is spelled correctly, it should be 
fine.

Thanks,

Steve.





More information about the cmake-developers mailing list