[CMake] coding style for modules

Dave Milter davemilter at gmail.com
Fri Jan 5 10:16:08 EST 2018


On Fri, Jan 5, 2018 at 12:09 AM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:>
>> b)Include this project as git submodule and use ExternalProject to
>> invoke `cmake` and `cmake --build`
>
> This would be a clean solution if you want to build libfoo as part of yur
> project.
>

Thank you for answer, but how handle cross compilation in this case?
For example I invoke `cmake
-DCMAKE_TOOLCHAIN_FILE=~/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake`
for master project.
Does `cmake` automatically add proper ` -DCMAKE_TOOLCHAIN_FILE=`
option into `cmake` invocation in ExternalProject?


More information about the CMake mailing list