From 947ddc9e1b66e502f137790c6c623486bf0bb2c0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 30 Nov 2021 10:09:08 +0000 Subject: Fix building on CMake 4. This is a partial backport from 2.1. --- src/CMakeLists.txt | 2 +- src/tools/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b390d164b..bdec61abf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -97,7 +97,7 @@ if(GETTEXT_FOUND) endif(GETTEXT_FOUND) # Get the filename of the Anope executable as it is in on this system -get_target_property(SERVICES_BINARY ${PROGRAM_NAME} LOCATION) +set(SERVICES_BINARY "$") get_filename_component(SERVICES_BINARY ${SERVICES_BINARY} NAME) # Add the Anope executable to the list of files for CPack to ignore add_to_cpack_ignored_files("${SERVICES_BINARY}$" TRUE) diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index 3e00b981d..29421aeeb 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -29,7 +29,7 @@ foreach(SRC ${TOOLS_SRCS}) DESTINATION ${BIN_DIR} ) # Add the executable to the list of files for CPack to ignore - get_target_property(EXE_BINARY ${EXE} LOCATION) + set(EXE_BINARY "$") get_filename_component(EXE_BINARY ${EXE_BINARY} NAME) add_to_cpack_ignored_files("${EXE_BINARY}$" TRUE) endif(NOT SKIP) -- cgit From 0b36ddfaf32b30dba22ec3a66a23b2e284c87e16 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 2 Apr 2025 09:58:49 +0100 Subject: Fix building on old versions of RHEL. --- src/mail.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/mail.cpp b/src/mail.cpp index fe8bb0b90..bdad2447f 100644 --- a/src/mail.cpp +++ b/src/mail.cpp @@ -9,6 +9,8 @@ * Based on the original code of Services by Andy Church. */ +#include + #include "services.h" #include "mail.h" #include "config.h" -- cgit