On 6. 6. 25 23:34, Peter Balogh wrote:
Hi,

I'm trying to build serf with vcpkg dependecies using this command

cmake -B out -DCMAKE_TOOLCHAIN_FILE=..\vcpkg\scripts\buildsystems\vcpkg.cmake -DAPR_ROOT=..\vcpkg\packages\apr_x64-windows -DAPRUtil_ROOT=..\vcpkg\packages\apr-util_x64-windows
cmake --build out

Than I run python gen-make.py -t cmake --with-serf=..\serf-serf-user-defined-authn in subversion and try to build with this command

cmake -B out -DSVN_ENABLE_RA_SERF=ON -DCMAKE_TOOLCHAIN_FILE=..\vcpkg\scripts\buildsystems\vcpkg.cmake -DCMAKE_PREFIX_PATH=..\serf-serf-user-defined-authn\out\Debug -DCMAKE_PREFIX_PATH=..\serf-serf-user-defined-authn

But Serf is not found, because there's no libserf-1 only libserf-2

Serf trunk is version 2.0.0, so you get libserf-2.

[...]

Am I missing something, or doing something wrong?
Previously I just modified FindSerf.cmake to look for serf-2, but this does not seem to do the trick anymore

Maybe something like this? I expect this is what you're already doing.

Index: FindSerf.cmake
===================================================================
--- FindSerf.cmake      (revision 1926004)
+++ FindSerf.cmake      (working copy)
@@ -24,10 +24,11 @@ find_path(Serf_INCLUDE_DIR
   PATH_SUFFIXES
     include
     include/serf-1
+    include/serf-2
 )
find_library(Serf_LIBRARY
-  NAMES serf-1
+  NAMES serf-1 serf-2
   PATH_SUFFIXES lib
 )

Reply via email to