svn commit: r1926244 - /subversion/trunk/build/cmake/FindSerf.cmake

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: brane
Date: Sun Jun  8 08:26:12 2025
New Revision: 1926244

URL: http://svn.apache.org/viewvc?rev=1926244&view=rev
Log:
Teach the CMake build to find serf-2, and use the paths defined in the
GNUInstallDirs module, because that's where Serf's CMake build installs
the build artefacts.

* build/cmake/FindSerf.cmake: Include and use GNUInstallDirs.
  (Serf_INCLUDE_DIR): Look for headers in the serf-2 subdirectory.
  (Serf_LIBRARY): Look for the serf-2 library first.

Modified:
    subversion/trunk/build/cmake/FindSerf.cmake

Modified: subversion/trunk/build/cmake/FindSerf.cmake
URL: http://svn.apache.org/viewvc/subversion/trunk/build/cmake/FindSerf.cmake?rev=1926244&r1=1926243&r2=1926244&view=diff
==============================================================================
--- subversion/trunk/build/cmake/FindSerf.cmake (original)
+++ subversion/trunk/build/cmake/FindSerf.cmake Sun Jun  8 08:26:12 2025
@@ -19,16 +19,22 @@
 # FindSerf.cmake -- CMake module for Serf library
 #
 
+include(GNUInstallDirs)
+
 find_path(Serf_INCLUDE_DIR
   NAMES serf.h
   PATH_SUFFIXES
     include
+    "${CMAKE_INSTALL_INCLUDEDIR}"
+    include/serf-2
+    "${CMAKE_INSTALL_INCLUDEDIR}/serf-2"
     include/serf-1
+    "${CMAKE_INSTALL_INCLUDEDIR}/serf-1"
 )
 
 find_library(Serf_LIBRARY
-  NAMES serf-1
-  PATH_SUFFIXES lib
+  NAMES serf-2 serf-1
+  PATH_SUFFIXES lib "${CMAKE_INSTALL_LIBDIR}"
 )
 
 mark_as_advanced(
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.