diff --git a/extras/CatchAddTests.cmake b/extras/CatchAddTests.cmake index 90fbd5e313..4c27f479ec 100644 --- a/extras/CatchAddTests.cmake +++ b/extras/CatchAddTests.cmake @@ -146,6 +146,7 @@ function(catch_discover_tests_impl) # Exit early if no tests are detected if(num_tests STREQUAL "0") + file(WRITE "${_CTEST_FILE}" "") return() endif()