# HG changeset patch # User Sebastien Jodogne # Date 1582624286 -3600 # Node ID 9c091747483a78416528bf3c82cbc1135f6b9c32 # Parent e6d6f8d23d0235af88a23a505405fbc68ef48cb1 Enable support of compression in civetweb diff -r e6d6f8d23d02 -r 9c091747483a Resources/CMake/CivetwebConfiguration.cmake --- a/Resources/CMake/CivetwebConfiguration.cmake Tue Feb 25 08:42:00 2020 +0100 +++ b/Resources/CMake/CivetwebConfiguration.cmake Tue Feb 25 10:51:26 2020 +0100 @@ -30,6 +30,12 @@ ${CIVETWEB_SOURCES_DIR}/src/civetweb.c ) + # New in Orthanc 1.6.0: Enable support of compression in civetweb + set_source_files_properties( + ${CIVETWEB_SOURCES} + PROPERTIES COMPILE_DEFINITIONS + "USE_ZLIB=1") + if (ENABLE_SSL) add_definitions( -DNO_SSL_DL=1 diff -r e6d6f8d23d02 -r 9c091747483a UnitTestsSources/VersionsTests.cpp --- a/UnitTestsSources/VersionsTests.cpp Tue Feb 25 08:42:00 2020 +0100 +++ b/UnitTestsSources/VersionsTests.cpp Tue Feb 25 10:51:26 2020 +0100 @@ -113,6 +113,14 @@ } +#if ORTHANC_ENABLE_CIVETWEB == 1 +TEST(Version, CivetwebCompression) +{ + ASSERT_TRUE(mg_check_feature(MG_FEATURES_COMPRESSION)); +} +#endif + + #if ORTHANC_STATIC == 1 TEST(Versions, ZlibStatic)