<div dir="ltr"><div dir="ltr">Dear all,<br>(essentially asking what I already posted on SO <a href="https://stackoverflow.com/questions/54447765">https://stackoverflow.com/questions/54447765</a>)</div><div dir="ltr"><br></div><div>I have a my_project/CMakeLists.txt file under my control. In its directory there is also a git submodule (say 'my_project/sub' for now), and I add the git-submodule on the cmake level though add_subdirectory(sub). The submodule is not under my control (well, I can fork it of cause, but we'd prefer not to have diverging branches, and the other way around, we don't want to pollute the submodule with my-project specific stuff).<br></div><div>Because of my (admittedly strange) production platform, the tests from sub fail in my project.<br></div><div><br></div><div>I can fix that by changing properties of the tests with `set_tests_properties(test_in_sub PROPERTIES ...)`.</div><div><br></div><div>However since the tests are defined in my_project/sub/CMakeLists.txt and I don't want to have my_project specific bodges in sub, I would like to call set_tests_properties from my_project/CMakeLists.txt.</div><div><br></div><div>When trying to do so, cmake reports that the test I'm trying to manipulate wouldn't exist. Things work when I call `add_test` and `set_tests_properties` from the same CMakeLists.txt file.</div><div><br></div><div>My question thus is: Is it possible to call `set_tests_properties` for a test that is `add_test`ed in a different CMakeLists.txt file, and if so how? (Well, and if not, I'm happy for other suggestions)</div><div><br></div><div>Thanks in advance,</div><div>Paul</div></div>