<div dir="ltr">Hi,<div><br></div><div>Suppose I have something like this:</div><div><br></div><div>add_executable(MyTest main.cpp)</div><div>set_target_properties(MyTest</div><div>  PROPERTIES</div><div>  DEBUG_POSTFIX _d</div><div>  RELEASE_POSTFIX _r</div><div>  )</div><div>add_test(RunTests MyTest) # where MyTest is the <command></div><div><br></div><div>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.</div><div><br></div><div>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".</div><div><br></div><div>Am I doing something wrong or is this a bug in CMake?</div><div><br></div><div>Regards,</div><div>Saad</div><div><br></div><div><br></div><div><br></div><div><br></div></div>