New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake: use CROSSCOMPILING_EMULATOR #99
Conversation
@traversaro what do you say about this one ? |
Ok for me, pinging @rhabacker and @pali if they have any objection. |
I suggest to add the following cmake code to the top level CMakeLists.txt to give users a hint if the emulator is not available.
|
Also a hint added to Readme.md for this support would be nice. |
@rhabacker are you sure that |
The cmake doc says nothing about this, but the code shows it does https://github.com/Kitware/CMake/blob/eeb771e4d6b9a1127a0818a211cafb722a2dc387/Source/cmFindProgramCommand.cxx#L93 |
If you are concerned about using an undocumented function, the code can be changed to
|
done, it's probably easier to check for CMAKE_CROSSCOMPILING_EMULATOR note that its not even mandatory if you have binfmt |
it's a cmake built-in idiom that simplifies wrapping of wine, so no need for WINE_EXECUTABLE etc