<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hi again,</span><br></div><div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><br>I possibly discovered a BUG. I have the following excerpt from my ctest script that I execute with "ctest -S". In Version 1, I try telling ctest to tell the configuration to configure a Debug Build. But this didn't work. I specifically need to pass the option to the ctest_configure as shown in Version 2. Is there something I didn't get conceptually, or can someone explain to me why Version 1 doesn't work?<br><br>Version 1:<br>...<br>SET_PROPERTY(GLOBAL PROPERTY SubProject "Debug")<br># TODO: I think this is a bug in ctest that we need to pass the
option explicitly to configure<br>SET(CTEST_BUILD_CONFIGURATION "Debug")<br><br>CTEST_START(Experimental)<br>CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}")<br>CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}")<br>CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}")<br>CTEST_MEMCHECK(BUILD "${CTEST_BINARY_DIRECTORY}")<br>CTEST_COVERAGE(BUILD "${CTEST_BINARY_DIRECTORY}")<br>CTEST_SUBMIT()<br><br><br>Version 2:<br>...<br>SET_PROPERTY(GLOBAL PROPERTY SubProject "Debug")<br>SET(CTEST_BUILD_CONFIGURATION "Debug")<br><br><br>CTEST_START(Experimental)<br>CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}"<br> OPTIONS "-DCMAKE_BUILD_TYPE=${CTEST_BUILD_CONFIGURATION}")<br>CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}")<br>CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}")<br>CTEST_MEMCHECK(BUILD "${CTEST_BINARY_DIRECTORY}")<br>CTEST_COVERAGE(BUILD
"${CTEST_BINARY_DIRECTORY}")<br>CTEST_SUBMIT()<br><br>Kind Regards<br>Michael<br><br><br> </div> </div> </div></body></html>