[cmake-developers] CMAKE_TOOLCHAIN_FILE and ExternalProject_Add

Stephen Kelly steveire at gmail.com
Tue Apr 28 17:27:04 EDT 2015


Andrey Pokrovskiy wrote:

> Hi,
> 
> I'm using cmake and CMAKE_TOOLCHAIN_FILE to build the project and it's
> dependencies. Some toolchain files have additional options (like API
> version, target architecture, linker type, etc.) which you need to
> pass to cmake command with "-D" in addition to the
> "-DCMAKE_TOOLCHAIN_FILE=" itself.

There should be no need for that. With reference to what Brad wrote, you 
might find any of this interesting:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/52129/focus=52142

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/9729

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/9578

Thanks,

Steve.





More information about the cmake-developers mailing list