Skip to content

Warn if CMAKE_CROSSCOMPILING is true without CMAKE_SYSTEM_NAME set

Also clarify the CMAKE_CROSSCOMPILING documentation to state that CMake sets the variable automatically.

Original Description In this case, CMakeDetermineSystem.cmake overrides the preexisting setting value of CMAKE_CROSSCOMPILING in nonobvious ways; warn the user and let him/her know that CMAKE_SYSTEM_NAME needs to be set if cross compiling.
Edited by Brad King

Merge request reports