comparison 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
comparison
equal deleted inserted replaced
4227:7fff7e683d65 4228:c8c0bbaaace3
86 86
87 source_group(ThirdParty\\Civetweb REGULAR_EXPRESSION ${CIVETWEB_SOURCES_DIR}/.*) 87 source_group(ThirdParty\\Civetweb REGULAR_EXPRESSION ${CIVETWEB_SOURCES_DIR}/.*)
88 88
89 add_definitions( 89 add_definitions(
90 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 90 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1
91 -DCIVETWEB_HAS_WEBDAV_WRITING=1
91 ) 92 )
92 93
93 else() 94 else()
94 CHECK_INCLUDE_FILE_CXX(civetweb.h HAVE_CIVETWEB_H) 95 CHECK_INCLUDE_FILE_CXX(civetweb.h HAVE_CIVETWEB_H)
95 if (NOT HAVE_CIVETWEB_H) 96 if (NOT HAVE_CIVETWEB_H)
110 # patch "../Patches/civetweb-1.12.patch" that allows to disable 111 # patch "../Patches/civetweb-1.12.patch" that allows to disable
111 # keep-alive on selected HTTP connections. This is useful to speed 112 # keep-alive on selected HTTP connections. This is useful to speed
112 # up multipart transfers, as encountered in DICOMweb. 113 # up multipart transfers, as encountered in DICOMweb.
113 CHECK_LIBRARY_EXISTS(civetweb mg_disable_keep_alive "" CIVETWEB_HAS_DISABLE_KEEP_ALIVE) 114 CHECK_LIBRARY_EXISTS(civetweb mg_disable_keep_alive "" CIVETWEB_HAS_DISABLE_KEEP_ALIVE)
114 if (CIVETWEB_HAS_DISABLE_KEEP_ALIVE) 115 if (CIVETWEB_HAS_DISABLE_KEEP_ALIVE)
115 add_definitions(-DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1) 116 add_definitions(
117 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1
118 -DCIVETWEB_HAS_WEBDAV_WRITING=1
119 )
116 message("Performance: Your system-wide distribution of civetweb is configured for best performance") 120 message("Performance: Your system-wide distribution of civetweb is configured for best performance")
117 else() 121 else()
118 message(WARNING "Performance: Your system-wide distribution of civetweb does not feature the mg_disable_keep_alive() function") 122 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")
119 add_definitions(-DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=0) 123 add_definitions(
124 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=0
125 -DCIVETWEB_HAS_WEBDAV_WRITING=0
126 )
120 endif() 127 endif()
121 endif() 128 endif()