[CMake] Using ctest --build-config data in add_test command params

Paul Oppenheim (Poppy Linden) poppy at lindenlab.com
Thu Apr 16 17:34:24 EDT 2009


Is there any way to get the --build-config value passed into ctest to be used as a variable in an add_test() command? I would like to chain that down to another ctest call which is doing --build-and-test on a sub-target. Naturally, that sub-build is building the wrong configuration, and on mac can't find the correct subdir to be able to execute the test :)

+ paul


More information about the CMake mailing list