summaryrefslogtreecommitdiff
path: root/Modules/GoogleTest.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2020-06-24 21:57:19 +1000
committerCraig Scott <craig.scott@crascit.com>2020-06-24 21:57:19 +1000
commit642ea49115949c57cc5f96a377d950e700a8f8c1 (patch)
treed0e8dd4da6b063ffe7812cd7693ee039e392470d /Modules/GoogleTest.cmake
parent09c38e8de6dd862eb73dbd047253f70ae27aaa24 (diff)
downloadcmake-642ea49115949c57cc5f96a377d950e700a8f8c1.tar.gz
GoogleTest: Replace SEND_ERROR with FATAL_ERROR
We want to fail and halt immediately upon any error, not continue past a fatal problem.
Diffstat (limited to 'Modules/GoogleTest.cmake')
-rw-r--r--Modules/GoogleTest.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GoogleTest.cmake b/Modules/GoogleTest.cmake
index f75d6ad372..b210a77153 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