GoogleTest: Replace SEND_ERROR with FATAL_ERROR

We want to fail and halt immediately upon any error, not continue
past a fatal problem.
This commit is contained in:
Craig Scott
2020-06-24 21:57:19 +10:00
parent 09c38e8de6
commit 642ea49115

View File

@@ -527,7 +527,7 @@ function(gtest_discover_tests TARGET)
endif()
else()
message(SEND_ERROR "Unknown DISCOVERY_MODE: ${_DISCOVERY_MODE}")
message(FATAL_ERROR "Unknown DISCOVERY_MODE: ${_DISCOVERY_MODE}")
endif()
# Add discovered tests to directory TEST_INCLUDE_FILES