package/log4cxx: fix ENABLE_ESMTP flag

commit cf686670b9 introduced a patch that
was later included in a release which made the usage of libesmtp
configurable. Later the switch was moved to the main CMakeLists.mk [0].

while the patch introduced the build flag LOG4CXX_ENABLE_ESMTP the
change to the .mk file used LOG4CXX_ENABLE_LIBESMTP.

So correct this.

Fixes:
CMake Warning:
  Manually-specified variables were not used by the project:
  LOG4CXX_ENABLE_LIBESMTP

[0] https://github.com/apache/logging-log4cxx/blob/rel/v1.3.1/CMakeLists.txt#L93

Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Michael Nosthoff
2026-02-11 15:32:34 +01:00
committed by Julien Olivain
parent b95ffe208b
commit 70a16560b2

View File

@@ -23,10 +23,10 @@ LOG4CXX_DEPENDENCIES += boost
endif
ifeq ($(BR2_PACKAGE_LIBESMTP),y)
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_LIBESMTP=ON
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_ESMTP=ON
LOG4CXX_DEPENDENCIES += libesmtp
else
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_LIBESMTP=OFF
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_ESMTP=OFF
endif
ifeq ($(BR2_PACKAGE_UNIXODBC),y)