tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
11.28k stars 286 forks source link

ffi, build: Don't use UNC paths on Windows #1451

Closed penberg closed 5 months ago

penberg commented 5 months ago

Windows build fails with "The network name cannot be found" error when built with encryption. That's because the std::fs::canocalize() function returns UNC paths on Windows, which confuses CMake to fail.

Switch to std::env::current_dir() instead, which returns paths that CMake can deal with.