From e10d366aa7b052b2de9475f82c54ede827de939d Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Sun, 28 May 2023 18:52:50 +0200 Subject: unittests/CMakeLists.txt: do not echo GTEST_SRC_DIR on error This prevents the error message to include the internal "GTEST_SRC_DIR-NOTFOUND" value. --- unittests/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'unittests') diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index 4eb75004..6d2c9968 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -188,8 +188,7 @@ else() ) if (NOT EXISTS "${GTEST_SRC_DIR}") - message(FATAL_ERROR "Google Test source directory \"${GTEST_SRC_DIR}\" " - "cannot be found.\n" + message(FATAL_ERROR "Google Test source directory cannot be found.\n" "Try passing -DGTEST_SRC_DIR= to CMake where " " is the path to the Google Test source tree.\n" "Alternatively, you can disable unit tests by passing " -- cgit 1.4.1