CROSSCOMPILING_EMULATOR property with emulator arguments for GoogleTest

The CROSSCOMPILING_EMULATOR property is a list where the first value is the executable and remaining values are arguments. Until (at least) 3.17.3 this property worked correctly with GoogleTest’s gtest_discover_tests. Since 3.18.0 all emulator arguments are stripped (the list is truncated to its first element).

I have isolated the problem to Modules/GoogleTestAddTests.cmake line 47: In the cmake_parse_arguments() call the “TEST_EXECUTOR” keyword is supplied on the <one_value_keyword> list, where in fact it is a list and therefore should be moved to the <multi_value_keywords> list.

Does CMake MR 5084 address this?

Yes it does! Thanks :slight_smile: