Hi,

I had a typo, but still no luck
Yes, the change is what I did before, and it used to work
I can look into it deeper, but I wanted to ask if this is known :)

-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.26100.
CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find Serf (missing: Serf_LIBRARY) (found version "2.0.0")
Call Stack (most recent call first):
  C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  build/cmake/FindSerf.cmake:56 (find_package_handle_standard_args)
C:/Work/SVNPlus/Workspace/subversion/vcpkg/scripts/buildsystems/vcpkg.cmake:893 (_find_package)
  CMakeLists.txt:326 (find_package)


-- Configuring incomplete, errors occurred!

Best regards,
Peter

On 2025. 06. 07. 0:03, Branko Čibej wrote:
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