Hi, Suppose I have something like this:
add_executable(MyTest main.cpp) set_target_properties(MyTest PROPERTIES DEBUG_POSTFIX _d RELEASE_POSTFIX _r ) add_test(RunTests MyTest) # where MyTest is the <command> I expect CMake to recognize that "MyTest" has executables that are named "MyTest_d" and "MyTest_r" and NOT MyTest. I expect this because in the CMake documentation the <command> can be an executable target where CMake then replaces it with the location of the executable. However, what I get is errors when running "ctest" where it complains that it cannot find "MyTest" when it should really be searching for "MyTest_d" and "MyTest_r". Am I doing something wrong or is this a bug in CMake? Regards, Saad
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake