You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message(FATAL_ERROR "APACHE_ROOT is defined but the directory '${APACHE_ROOT}' does not exist. Please set APACHE_ROOT to a valid Apache installation directory.")
@@ -172,7 +155,6 @@ if(APACHE_ROOT)
172
155
)
173
156
endif()
174
157
175
-
# Compile definitions to match the original Makefile.win
176
158
set(MODSECURITY_VERSION_FLAG "VERSION_IIS") # Define the version flag string
message(WARNING "YAJL not found. YAJL_INCLUDE_DIR: '${YAJL_INCLUDE_DIR}', YAJL_LIBRARY: '${YAJL_LIBRARY}'. Please ensure yajl is installed via vcpkg in the vcpkg_installed directory. Disabling YAJL support.")
214
-
option(WITH_YAJL "Enable YAJL support"OFF)# Disable if not found
195
+
option(WITH_YAJL "Enable YAJL support"OFF)
215
196
endif()
216
197
endif()
217
198
218
199
option(WITH_SSDEEP "Enable SSDEEP support"OFF)
219
200
if(WITH_SSDEEP)
220
201
221
-
set(SSDEEP_ROOT ""CACHEPATH"Path to manually built ssdeep")
222
-
if(NOT SSDEEP_ROOT ORNOTEXISTS"${SSDEEP_ROOT}")
202
+
if(NOTEXISTS"${SSDEEP_ROOT}")
223
203
message(WARNING "SSDEEP_ROOT is not defined or path does not exist. Current SSDEEP_ROOT: '${SSDEEP_ROOT}'. Please set SSDEEP_ROOT to the ssdeep installation directory. Disabling SSDEEP support.")
# Compiler-specific options for MSVC to match the original Makefile.win
279
258
if(MSVC)
280
259
target_compile_options(${IIS_MODULE_NAME}PRIVATE
281
260
/nologo
282
261
/W3
283
262
/wd4244
284
263
/wd4018
285
-
286
264
)
287
265
endif()
288
266
289
-
# Link libraries to match the original Makefile.win
290
267
target_link_libraries(${IIS_MODULE_NAME}PRIVATE
291
268
LibXml2::LibXml2
292
269
PCRE2::8BIT
293
270
CURL::libcurl
294
-
kernel32
295
-
user32
296
-
gdi32
297
-
winspool
298
-
comdlg32
299
-
advapi32
300
-
shell32
301
-
ole32
302
-
oleaut32
303
-
uuid
304
-
odbc32
305
-
odbccp32
306
271
ws2_32
307
272
iphlpapi
308
273
)
309
274
310
-
# Apache-specific libraries
311
275
if(APACHE_ROOT)
312
276
target_link_libraries(${IIS_MODULE_NAME}PRIVATE
313
277
Apache::httpd
@@ -319,7 +283,6 @@ else()
319
283
message(WARNING "APACHE_ROOT is not defined or path does not exist. Current APACHE_ROOT: '${APACHE_ROOT}'. Please set APACHE_ROOT to the Apache installation directory.")
message(WARNING "APACHE_ROOT is not defined or path does not exist. Current APACHE_ROOT: '${APACHE_ROOT}'. Please set APACHE_ROOT to the Apache installation directory.")
350
313
endif()
351
314
352
-
if(WITH_SSDEEP AND SSDEEP_ROOT ANDEXISTS"${SSDEEP_ROOT}/bin/fuzzy.dll")
315
+
if(WITH_SSDEEP AND SSDEEP_ROOT ANDEXISTS"${SSDEEP_ROOT}/fuzzy.dll")
0 commit comments