From e8ddd907bb6a881f40069ea73caa74cb9112c564 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Tue, 8 May 2018 13:33:37 +0300 Subject: [PATCH] There is no "FATAL" in message(), only "FATAL_ERROR" (#584) --- CMakeLists.txt | 2 +- cmake/HandleGTest.cmake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c107937..b1c1d3d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,7 +216,7 @@ if (BENCHMARK_USE_LIBCXX) # linker flags appear before all linker inputs and -lc++ must appear after. list(APPEND BENCHMARK_CXX_LIBRARIES c++) else() - message(FATAL "-DBENCHMARK_USE_LIBCXX:BOOL=ON is not supported for compiler") + message(FATAL_ERROR "-DBENCHMARK_USE_LIBCXX:BOOL=ON is not supported for compiler") endif() endif(BENCHMARK_USE_LIBCXX) diff --git a/cmake/HandleGTest.cmake b/cmake/HandleGTest.cmake index 3ebe9f32..43c71bf9 100644 --- a/cmake/HandleGTest.cmake +++ b/cmake/HandleGTest.cmake @@ -94,7 +94,7 @@ if (BENCHMARK_ENABLE_GTEST_TESTS) HINTS ${HPATH} ) if (NOT HEADER_PATH_${HEADER}) - message(FATAL "Failed to find header ${HFILE} in ${HPATH}") + message(FATAL_ERROR "Failed to find header ${HFILE} in ${HPATH}") endif() list(APPEND GTEST_INCLUDE_DIRS ${HEADER_PATH_${HEADER}}) endforeach() @@ -105,7 +105,7 @@ if (BENCHMARK_ENABLE_GTEST_TESTS) find_path(GMOCK_INCLUDE_DIRS gmock/gmock.h HINTS ${GTEST_INCLUDE_DIRS}) if (NOT GMOCK_INCLUDE_DIRS) - message(FATAL "Failed to find header gmock/gmock.h with hint ${GTEST_INCLUDE_DIRS}") + message(FATAL_ERROR "Failed to find header gmock/gmock.h with hint ${GTEST_INCLUDE_DIRS}") endif() set(GTEST_INCLUDE_DIRS ${GTEST_INCLUDE_DIRS} ${GMOCK_INCLUDE_DIRS}) # FIXME: We don't currently require the gmock library to build the tests,