When I tried building it on my Apple Silicon macOS, it gave the following error:
[ 55%] Linking CXX shared library libcpr.dylib
ld: library 'stdc++fs' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [_deps/cpr-build/cpr/libcpr.1.10.5.dylib] Error 1
make[1]: *** [_deps/cpr-build/cpr/CMakeFiles/cpr.dir/all] Error 2
make: *** [all] Error 2
This is how I was trying to build:
cmake -S . -B build \
-DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang \
-DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ \
-DCMAKE_BUILD_TYPE=Release
cmake --build build