From 642ea49115949c57cc5f96a377d950e700a8f8c1 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Wed, 24 Jun 2020 21:57:19 +1000 Subject: GoogleTest: Replace SEND_ERROR with FATAL_ERROR We want to fail and halt immediately upon any error, not continue past a fatal problem. --- Modules/GoogleTest.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/GoogleTest.cmake b/Modules/GoogleTest.cmake index f75d6ad..b210a77 100644 --- a/Modules/GoogleTest.cmake +++ b/Modules/GoogleTest.cmake @@ -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 -- cgit v0.12