Skip to content

Commit

Permalink
inform about not executed tests if ssl or compression aren't enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-schlecker committed Aug 30, 2021
1 parent 79f5000 commit 9f5abdb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f5abdb

Please sign in to comment.