svn commit: r1931636 - subversion/trunk

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <176990115038.3261376.11270660796542203543@svn02-us-east.apache.org>
Author: rinrab
Date: Sat Jan 31 23:12:30 2026
New Revision: 1931636

Log:
cmake: Produce an error when configuring with serf < version 1.3.4. This
replicates behaviour of autoconf build system.

* CMakeLists.txt
  (serf): Collect version into DETECTED_SERF_VERSION and verify that it's
   supported.

Reviewed by: dsahlberg

Modified:
   subversion/trunk/CMakeLists.txt

Modified: subversion/trunk/CMakeLists.txt
==============================================================================
--- subversion/trunk/CMakeLists.txt	Sat Jan 31 22:16:57 2026	(r1931635)
+++ subversion/trunk/CMakeLists.txt	Sat Jan 31 23:12:30 2026	(r1931636)
@@ -376,9 +376,15 @@ if (SVN_ENABLE_RA_SERF)
   if(SVN_USE_PKG_CONFIG)
     pkg_search_module(serf IMPORTED_TARGET REQUIRED serf-2 serf-1)
     add_library(external-serf ALIAS PkgConfig::serf)
+    set(DETECTED_SERF_VERSION "${serf_VERSION}")
   else()
     find_package(Serf REQUIRED)
     add_library(external-serf ALIAS Serf::Serf)
+    set(DETECTED_SERF_VERSION "${Serf_VERSION}")
+  endif()
+
+  if("${DETECTED_SERF_VERSION}" VERSION_LESS 1.3.4)
+    message(FATAL_ERROR "Serf 1.3.4 or later required, found ${DETECTED_SERF_VERSION}")
   endif()
 endif()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.