diff OrthancFramework/Resources/CMake/CivetwebConfiguration.cmake @ 4228:c8c0bbaaace3

write access to webdav
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 Oct 2020 12:45:11 +0200
parents 7b14ddf795c5
children 5227df2a650f
line wrap: on
line diff
--- a/OrthancFramework/Resources/CMake/CivetwebConfiguration.cmake	Mon Oct 05 10:55:24 2020 +0200
+++ b/OrthancFramework/Resources/CMake/CivetwebConfiguration.cmake	Tue Oct 06 12:45:11 2020 +0200
@@ -88,6 +88,7 @@
 
   add_definitions(
     -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1
+    -DCIVETWEB_HAS_WEBDAV_WRITING=1
     )
 
 else()
@@ -112,10 +113,16 @@
   # up multipart transfers, as encountered in DICOMweb.
   CHECK_LIBRARY_EXISTS(civetweb mg_disable_keep_alive "" CIVETWEB_HAS_DISABLE_KEEP_ALIVE)
   if (CIVETWEB_HAS_DISABLE_KEEP_ALIVE)
-    add_definitions(-DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1)
+    add_definitions(
+      -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1
+      -DCIVETWEB_HAS_WEBDAV_WRITING=1
+      )
     message("Performance: Your system-wide distribution of civetweb is configured for best performance")
   else()
-    message(WARNING "Performance: Your system-wide distribution of civetweb does not feature the mg_disable_keep_alive() function")
-    add_definitions(-DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=0)
+    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")
+    add_definitions(
+      -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=0
+      -DCIVETWEB_HAS_WEBDAV_WRITING=0
+      )
   endif()
 endif()