Closed andr2000 closed 5 years ago
the cmake is not desired to used for cross compilation yet. I wonder how one can determine availability of certain compiler features in such an environment then...
This is no problem when used with Yocto which is my case. Yocto also provides cross-SDK, so there is no worry about the environment as well
but that does not solve the problem, right?
Exactly, because the CMakeLists is written in a way it requires the cross-compiled test to run on the host which is obviously not possible
exactly. so you can't cross compile right now, as said before
Hm, but it can be fixed. I can cross-compile using autotools, but not CMake
then please go ahead. the autotools do the testing for compiler features on the build machine as well and not using the cross compiler, otherwise they'd fail as well
Pardon me, but by saying "go ahead" you mean what?
if you can fix it, then please do so, as I wouldn't know how that should be possible
Trying to cross-compile with cmake produces the following errors during configuration:
The issues seems to be that CMake tries to run target code on host and fails