Lines 1-6
Link Here
|
1 |
--- OrthancFramework/Resources/CMake/CivetwebConfiguration.cmake.orig 2021-05-12 13:54:35 UTC |
1 |
--- OrthancFramework/Resources/CMake/CivetwebConfiguration.cmake.orig 2021-08-30 20:14:33 UTC |
2 |
+++ OrthancFramework/Resources/CMake/CivetwebConfiguration.cmake |
2 |
+++ OrthancFramework/Resources/CMake/CivetwebConfiguration.cmake |
3 |
@@ -98,32 +98,38 @@ else() |
3 |
@@ -109,32 +109,38 @@ else() |
4 |
|
4 |
|
5 |
cmake_reset_check_state() |
5 |
cmake_reset_check_state() |
6 |
set(CMAKE_REQUIRED_LIBRARIES dl pthread) |
6 |
set(CMAKE_REQUIRED_LIBRARIES dl pthread) |
Lines 34-40
Link Here
|
34 |
+ message(FATAL_ERROR "Unable to use mg_start from civetweb library") |
34 |
+ message(FATAL_ERROR "Unable to use mg_start from civetweb library") |
35 |
+ endif() |
35 |
+ endif() |
36 |
+ |
36 |
+ |
37 |
+ CHECK_LIBRARY_EXISTS(${CIVETWEB_LIB} mg_disable_keep_alive "" CIVETWEB_HAS_DISABLE_KEEP_ALIVE) |
37 |
+ CHECK_LIBRARY_EXISTS(${CIVETWEB_LIB} mg_disable_connection_keep_alive "" CIVETWEB_HAS_DISABLE_KEEP_ALIVE) |
38 |
+ if (CIVETWEB_HAS_DISABLE_KEEP_ALIVE) |
38 |
+ if (CIVETWEB_HAS_DISABLE_KEEP_ALIVE) |
39 |
+ add_definitions( |
39 |
+ add_definitions( |
40 |
+ -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 |
40 |
+ -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 |
Lines 42-48
Link Here
|
42 |
+ ) |
42 |
+ ) |
43 |
+ message("Performance: Your system-wide distribution of civetweb is configured for best performance") |
43 |
+ message("Performance: Your system-wide distribution of civetweb is configured for best performance") |
44 |
+ else() |
44 |
+ else() |
45 |
+ message(WARNING "Performance: Your system-wide distribution of civetweb does not feature the mg_disable_keep_alive() function, and WebDAV will only be available for read-only access") |
45 |
+ message(WARNING "Performance: Your system-wide distribution of civetweb does not feature the mg_disable_connection_keep_alive() function, and WebDAV will only be available for read-only access") |
46 |
+ add_definitions( |
46 |
+ add_definitions( |
47 |
+ -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=0 |
47 |
+ -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=0 |
48 |
+ -DCIVETWEB_HAS_WEBDAV_WRITING=0 |
48 |
+ -DCIVETWEB_HAS_WEBDAV_WRITING=0 |