# CROSSCOMPILING\_EMULATOR property with emulator arguments for GoogleTest

**URL:** https://discourse.cmake.org/t/crosscompiling-emulator-property-with-emulator-arguments-for-googletest/1659
**Category:** Development
**Created:** [August 3, 2020, 1:27pm UTC](https://discourse.cmake.org/t/crosscompiling-emulator-property-with-emulator-arguments-for-googletest/1659 "2020-08-03T13:27:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jacand](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jacand/32/776_2.png) [@jacand](https://discourse.cmake.org/u/jacand)
#### Post date: [August 3, 2020, 1:27pm UTC](https://discourse.cmake.org/t/crosscompiling-emulator-property-with-emulator-arguments-for-googletest/1659/1 "2020-08-03T13:27:02Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [August 3, 2020, 1:35pm UTC](https://discourse.cmake.org/t/crosscompiling-emulator-property-with-emulator-arguments-for-googletest/1659/2 "2020-08-03T13:35:31Z")

</div>

Does [CMake MR 5084](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5084) address this?

---

<div class="post-metadata">

### Author: ![jacand](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jacand/32/776_2.png) [@jacand](https://discourse.cmake.org/u/jacand)
#### Post date: [August 3, 2020, 1:39pm UTC](https://discourse.cmake.org/t/crosscompiling-emulator-property-with-emulator-arguments-for-googletest/1659/3 "2020-08-03T13:39:22Z")

</div>

Yes it does! Thanks 🙂
