Skip to content

Commit 4c5b8d3

Browse files
inform about not executed tests if ssl or compression aren't enabled.
1 parent 989ae6a commit 4c5b8d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ endif()
8181

8282
# Tests
8383
if(NOT MSVC AND CROW_BUILD_TESTS)
84+
if(NOT CROW_ENABLE_COMPRESSION)
85+
message(STATUS "Compression tests are omitted. (Configure with CROW_ENABLE_COMPRESSION=ON to enable them)")
86+
endif()
87+
if(NOT CROW_ENABLE_SSL)
88+
message(STATUS "SSL tests are omitted. (Configure with CROW_ENABLE_SSL=ON to enable them)")
89+
endif()
90+
8491
add_subdirectory(tests)
8592
enable_testing()
8693
add_test(NAME crow_test COMMAND ${CMAKE_CURRENT_BINARY_DIR}/tests/unittest)

0 commit comments

Comments
 (0)