From 624b9c3caab5b731712c3e8cf584fb19ae7430c8 Mon Sep 17 00:00:00 2001 From: Luca Schlecker Date: Mon, 30 Aug 2021 02:31:20 +0200 Subject: [PATCH] inform about not executed tests if ssl or compression aren't enabled. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0154b3c9a..69b017bf6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,6 +81,13 @@ endif() # Tests if(NOT MSVC AND CROW_BUILD_TESTS) + if(NOT CROW_ENABLE_COMPRESSION) + message(STATUS "Compression tests are omitted. (Configure with CROW_ENABLE_COMPRESSION=ON to enable them)") + endif() + if(NOT CROW_ENABLE_SSL) + message(STATUS "SSL tests are omitted. (Configure with CROW_ENABLE_SSL=ON to enable them)") + endif() + add_subdirectory(tests) enable_testing() add_test(NAME crow_test COMMAND ${CMAKE_CURRENT_BINARY_DIR}/tests/unittest)