ExternalProject : cross compilation
Hello
I'm using CMake to build my OpenSource project, for home automation : Yadoms
Our software supports many platforms (Windows, linux, mac) and cross compilation (RaspberryPI, Synology NAS,...)
We are using "ExternalProjects" to build our dependencies.
My problem is our that our external project, is also a cmake project.
In case of cross compiling our software, we use a command line argument to specify CMAKE_TOOLCHAIN_FILE But ExternalProject don't get the same build environment than our main software.
Is there a way for my "cmake based externalprojects" to be built with same environment thant main cmake project ?
Thanks