[CMake] ExternalProject with toolchain files for cross compiling?

Sergei Nikulov sergey.nikulov at gmail.com
Fri Jul 14 10:05:08 EDT 2017


2017-07-14 16:14 GMT+03:00 Robert Dailey <rcdailey.lists at gmail.com>:
> So I'd like to use ExternalProject_Add() to pull down an external git
> repository that builds with CMake. I'd like it to use the same
> toolchain file that I"m using in my parent projects. However, I do not
> see any explicit documentation regarding toolchain support for
> ExternalProject. Do I need to explicitly pass down CMake arguments
> with the toolchain file? Or does this happen transitively? I'm using
> CMake 3.9.0

I use CMAKE_ARGS option for that
https://cmake.org/cmake/help/v3.9/module/ExternalProject.html?highlight=externalproject_add#command:externalproject_add

HTH.


-- 
Best Regards,
Sergei Nikulov


More information about the CMake mailing list