diff --git a/CMakeLists.txt b/CMakeLists.txt index f17f66a5..cf7a4d56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -453,6 +453,8 @@ if(TESTS) # Add aliases so target names are compatible with the find_package above add_library(GTest::GTest ALIAS gtest) add_library(GTest::Main ALIAS gtest_main) + else() + message(FATAL_ERROR "Could not find gtest, cannot enable testing") endif() # Hippomocks library