1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Also build regex_tre on Windows.

This commit is contained in:
Sadie Powell
2026-02-08 12:37:27 +00:00
parent 766a18b0f1
commit bf5ab14a21
4 changed files with 11 additions and 4 deletions
+1
View File
@@ -24,6 +24,7 @@ if(WIN32 AND DEFINED CMAKE_TOOLCHAIN_FILE)
enable_extra("mysql" "libmysqlclient")
enable_extra("regex_pcre2" "PCRE2")
enable_extra("regex_posix" "PCRE2")
enable_extra("regex_tre" "tre")
enable_extra("sqlite" "SQLite3")
enable_extra("ssl_openssl" "OpenSSL")
# this uses Wldap so should always be available
+1 -1
View File
@@ -434,7 +434,7 @@ class CommandCSMode final
break;
}
Anope::string mode_param;
if (NeedsParam(cm, adding) && !sep.GetToken(mode_param))
if (NeedsParam(cm, adding && setting) && !sep.GetToken(mode_param))
{
missingparam.Push(cm, mode_param, adding);
break;
+8 -3
View File
@@ -13,9 +13,14 @@
// SPDX-License-Identifier: GPL-2.0-only
/// BEGIN CMAKE
/// pkg_check_modules("TRE" IMPORTED_TARGET REQUIRED "tre")
/// target_link_libraries(${SO} PRIVATE PkgConfig::TRE)
/// target_compile_options(${SO} PRIVATE "-Wno-error=date-time") # Workaround for TRE bug 117
/// if(WIN32)
/// find_package("tre" REQUIRED)
/// target_link_libraries(${SO} PRIVATE "tre::tre")
/// else()
/// pkg_check_modules("TRE" IMPORTED_TARGET REQUIRED "tre")
/// target_link_libraries(${SO} PRIVATE PkgConfig::TRE)
/// target_compile_options(${SO} PRIVATE "-Wno-error=date-time") # Workaround for TRE bug 117
/// endif()
/// END CMAKE
#include "module.h"
+1
View File
@@ -5,6 +5,7 @@ libmysqlclient/8.1.0
openssl/3.6.1
pcre2/10.44
sqlite3/3.51.0
tre/cci.20230717
[tool_requires]
gettext/0.26