if(IS_DIRECTORY ${out}/d1) set(RunCMake_TEST_FAILED "directory d1 was not removed") endif() if(IS_DIRECTORY ${out}/d2) set(RunCMake_TEST_FAILED "directory d2 was not removed") endif()