Hello.
I have some trouble with set_test_properties function.
Let's say I want to add something to the environment (DLL path for
instance). I use the following code in my CMakeLists.txt:
set_tests_properties(Prog PROPERTIES ENVIRONMENT
"CONFIG=${CTEST_CONFIGURATION_TYPE}")
When processed by cmake, the resulting CtestTestfile.cmake shows:
SET_TESTS_PROPERTIES(Prog PROPERTIES ENVIRONMENT "CONFIG=")
That's fine, I need to protect the variable using:
set_tests_properties(Prog PROPERTIES ENVIRONMENT
"CONFIG=\${CTEST_CONFIGURATION_TYPE}")
But the resulting CTestTestfile.cmake shows:
SET_TESTS_PROPERTIES(Prog PROPERTIES ENVIRONMENT
"CONFIG=\${CTEST_CONFIGURATION_TYPE}")
Which won't get expanded while running ctest!
How could I make my variable get expanded by ctest and not by cmake?
How can I solve my problem?
Thanks.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake