[CMake] Passing CMAKE_TOOLCHAIN_FILE on command line causes CMake warning

Eric Noulard eric.noulard at gmail.com
Wed Feb 6 10:24:42 EST 2013


2013/2/6 Pat Marion <pat.marion at kitware.com>:
> Thanks for the discussion guys!  And thanks Marcus for the CMAKE_CACHE_ARGS
> tip.  I'll try that out.
>
>
> In fact, the current design could be problematic because if you *do* specify
> a different toolchain file, cmake will ignore it instead of sending you a
> warning like it does if you change the CMAKE_CXX_COMPILER.  Would it be
> straightforward to compare the passed in value of CMAKE_TOOLCHAIN_FILE
> against the cached version?  That would prevent the "noisy" warning message,
> and afford the opportunity to send a legitimate warning or error if it does
> not match.

+1

I was about to suggest the very same idea.


-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list