Repository navigation
Conversation
…hose for which to check output
…hose for which to check output
| add_two_ints_server | ||
| add_two_ints_client | ||
| add_two_ints_client_async) | ||
|
|
There was a problem hiding this comment.
is there anything I can call to access a list of all executables instead of writing them out myself?
I wanted to append names to a list when custom_executable is called, but I'm having issues with scope
There was a problem hiding this comment.
You could reuse the list already in the CMake code as example_output_tests.
There was a problem hiding this comment.
Even though custom_executable is a function, you should be able to do list(APPEND ...) on a variable already set outside of the function. The other option is that you can do set(x ${x} PARENT_SCOPE), where x is the variable you want to export up one level (out of a function for example).
There was a problem hiding this comment.
custom_executable is a function and therefore doesn't (normally) affect the callers scope. What are you trying to achieve?
There was a problem hiding this comment.
I was trying to use a list separate to example_output_tests since there might be things you want to check the linking of but not the output.
I wasn't able to do the list(APPEND inside custom_executable even with PARENT_SCOPE because it's called from within call_for_each_rmw_implementation, so things were starting to get messy.
b14591d to
f4ef8e6
Compare
|
We think that #106 is sufficient. We'll close this and reopen it from your fork if necessary. |
Regression test for fda5938. If fda5938 is reverted, the
test_outputtests pass, but thetest_linkingtests fail (on windows 10, trusty, and yosemite).todo: