mariusbancila / stduuid

A C++17 cross-platform implementation for UUIDs
MIT License
742 stars 112 forks source link

Fix CMakeLists.txt using CMAKE_SOURCE_DIR instead of CMAKE_CURRENT_SOURCE_DIR #89

Open leonvictor opened 2 months ago

leonvictor commented 2 months ago

CMakeLists.txt used to incorrectly use CMAKE_SOURCE_DIR instead of CMAKE_CURRENT_SOURCE_DIR to point to the cmake subfolder.

This notably prevented projects using CMake to include this lib to access FindLibuuid. This PR shoud fix things like https://github.com/mariusbancila/stduuid/issues/77

sketchylizard commented 2 weeks ago

I cannot currently use the system generator on Linux because it cannot find the FindLibuuid.cmake file. This PR fixes it for me. Is there something blocking it being merged?