[CMake] How to check if test exists

CHEVRIER, Marc marc.chevrier at sap.com
Tue Oct 6 07:18:09 EDT 2015


Hi,

What is the best way to check if a test is already defined using function add_test?
My initial though was that if() can be used for that purpose but, unfortunately, if (TEST <test-name>) is not supported for now.

Thanks.

Marc


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151006/14126b4e/attachment-0001.html>


More information about the CMake mailing list