diff options
| author | Martin Hořeňovský | 2020-10-08 17:15:05 +0200 |
|---|---|---|
| committer | GitHub | 2020-10-08 17:15:05 +0200 |
| commit | 4ea18d6d17c52b0bae500180918eaff998ebb639 (patch) | |
| tree | 82a4dfcca14b8a6f9a9be4357bda745e1dbda69c | |
| parent | b9853b4b356b83bb580c746c3a1f11101f9af54f (diff) | |
| parent | c44d9cc718614e6121f5a0479cb9062654162134 (diff) | |
| download | catch3-4ea18d6d17c52b0bae500180918eaff998ebb639.tar.gz | |
Merge pull request #2044 from lkeegan/fix_cmake_catch_add_tests_warning
fix warning in extras/CatchAddTests.cmake
| -rw-r--r-- | extras/CatchAddTests.cmake | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/extras/CatchAddTests.cmake b/extras/CatchAddTests.cmake index a174c7d4..3688b72f 100644 --- a/extras/CatchAddTests.cmake +++ b/extras/CatchAddTests.cmake @@ -55,11 +55,7 @@ execute_process( RESULT_VARIABLE reporters_result WORKING_DIRECTORY "${TEST_WORKING_DIR}" ) -if(${reporters_result} EQUAL 0) - message(WARNING - "Test executable '${TEST_EXECUTABLE}' contains no reporters!\n" - ) -elseif(${reporters_result} LESS 0) +if(NOT ${reporters_result} EQUAL 0) message(FATAL_ERROR "Error running test executable '${TEST_EXECUTABLE}':\n" " Result: ${reporters_result}\n" |