fastfloat / fast_float

Fast and exact implementation of the C++ from_chars functions for number types: 4x to 10x faster than strtod, part of GCC 12, Chromium and WebKit/Safari
Apache License 2.0
1.35k stars 124 forks source link

FetchContent fails: add_subdirectory given source ... which is not an existing directory #267

Closed yurivict closed 2 weeks ago

yurivict commented 2 weeks ago

Failure messages:

===>  Testing for fast_float-6.1.4
CMake Error at tests/CMakeLists.txt:29 (add_subdirectory):
  add_subdirectory given source
  "/usr/ports/devel/fast_float/work/.build/_deps/doctest-src" which is not an
  existing directory.

-- Supplemental tests enabled. Retrieving test files.
-- Supplemental test files retrieved.
CMake Error at tests/CMakeLists.txt:40 (add_subdirectory):
  add_subdirectory given source
  "/usr/ports/devel/fast_float/work/.build/_deps/supplemental_test_files-src"
  which is not an existing directory.

(1) Why don't you use git modules instead? Fetch isn't allowed during build in package builders. (2) Why don't you use find_package(doctest) ?

Version: 6.1.4 FreeBSD 14.1

lemire commented 2 weeks ago

Please follow the instructions of our README:

https://github.com/fastfloat/fast_float?tab=readme-ov-file#using-as-a-cmake-dependency

Screenshot 2024-08-27 at 8 26 21 AM