[CMake] Passing CMAKE_TOOLCHAIN_FILE on command line causes CMake warning

Michael Wild themiwi at gmail.com
Wed Feb 6 06:52:52 EST 2013


Hi


On Wed, Feb 6, 2013 at 11:59 AM, Pat Marion <pat.marion at kitware.com> wrote:

> Hi,
>
> I'm emailing about bug 13093<http://public.kitware.com/Bug/view.php?id=13093>in the backlog.  I found comments
> by Brad <http://www.cmake.org/pipermail/cmake/2011-February/042556.html>that suggest it's a legitimate warning, but I'm not sure how a project
> could avoid the warning.


By not specifying the toolchain file, for instance? If you have the problem
in conjunction with ExternalProject_Add, check whether the CMakeCache.txt
file exists in the build tree of the external project. If not, include the
flag, otherwise drop it.

My 2c

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130206/f7c56e73/attachment.htm>


More information about the CMake mailing list