Skip to content

GoogleTest: Clarify cross-compile requirements

Hugo Lindström requested to merge (removed):master into master

add_test and gtest_discover_tests executes in script mode during the build step and does not have access to CONFIGURE variables. If CMAKE_CROSSCOMPILING is set, the TARGET_EXECUTOR is prefixed with the CMAKE_CROSSCOMPILING_EMULATOR value.

If the host system cannot execute the cross compiled binary, the build will fail. This will make that more clear in the documentation.

Edited by Hugo Lindström

Merge request reports

Loading