Mercurial > hg > orthanc
comparison Resources/CMake/CivetwebConfiguration.cmake @ 3178:6d558598d713
Fix build with unpatched versions of Civetweb (missing "mg_disable_keep_alive()")
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Jan 2019 12:41:20 +0100 |
parents | 0c2a8d5e0097 |
children | 9c091747483a |
comparison
equal
deleted
inserted
replaced
3177:053e72ff9fc5 | 3178:6d558598d713 |
---|---|
45 ) | 45 ) |
46 endif() | 46 endif() |
47 | 47 |
48 source_group(ThirdParty\\Civetweb REGULAR_EXPRESSION ${CIVETWEB_SOURCES_DIR}/.*) | 48 source_group(ThirdParty\\Civetweb REGULAR_EXPRESSION ${CIVETWEB_SOURCES_DIR}/.*) |
49 | 49 |
50 add_definitions( | |
51 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 | |
52 ) | |
53 | |
50 else() | 54 else() |
51 CHECK_INCLUDE_FILE_CXX(civetweb.h HAVE_CIVETWEB_H) | 55 CHECK_INCLUDE_FILE_CXX(civetweb.h HAVE_CIVETWEB_H) |
52 if (NOT HAVE_CIVETWEB_H) | 56 if (NOT HAVE_CIVETWEB_H) |
53 message(FATAL_ERROR "Please install the libcivetweb-devel package") | 57 message(FATAL_ERROR "Please install the libcivetweb-devel package") |
54 endif() | 58 endif() |
59 if (NOT HAVE_CIVETWEB_LIB) | 63 if (NOT HAVE_CIVETWEB_LIB) |
60 message(FATAL_ERROR "Please install the libcivetweb-devel package") | 64 message(FATAL_ERROR "Please install the libcivetweb-devel package") |
61 endif() | 65 endif() |
62 | 66 |
63 link_libraries(civetweb) | 67 link_libraries(civetweb) |
68 | |
69 add_definitions( | |
70 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=0 | |
71 ) | |
64 endif() | 72 endif() |