Hi, I’m trying to add CMake support for an existing library that has a suite of tests that are expected to be invoked in the following way:
test001 /ref/opt
where /ref/opt
is the project’s own notation for expressing a list of options for the test, i.e. {ref, opt}. In an attempt to set this test up with CMake/CTest, I did
set(BACKENDS /ref/opt)
add_test(
NAME ${my_test}
COMMAND ${my_test} ${CEED_BACKENDS}
)
but that seems to end up invoking
Test command: /path/to/my/project/build/test001 "/ref/opt"
This is not the argument format the program expects, and the tests fail as a result. How do I prevent CMake from appending these extra quotation marks to my test’s arguments?