cmake-deps.patch 907 B

1234567891011121314151617181920212223242526272829
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index ea146a8..31373e5 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -69,14 +69,12 @@ set(C4CORE_SRC_FILES
  6. c4/windows_push.hpp
  7. c4/c4core.natvis
  8. #
  9. - c4/ext/debugbreak/debugbreak.h
  10. c4/ext/rng/rng.hpp
  11. c4/ext/sg14/inplace_function.h
  12. )
  13. if(C4CORE_WITH_FASTFLOAT)
  14. list(APPEND C4CORE_SRC_FILES
  15. c4/ext/fast_float.hpp
  16. - c4/ext/fast_float_all.h
  17. )
  18. endif()
  19. set(C4CORE_AMALGAMATED ${C4CORE_SRC_DIR}/../src_singleheader/c4/c4core_all.hpp)
  20. @@ -97,6 +95,9 @@ c4_add_library(c4core
  21. )
  22. if(NOT C4CORE_WITH_FASTFLOAT)
  23. target_compile_definitions(c4core PUBLIC -DC4CORE_NO_FAST_FLOAT)
  24. +else()
  25. + find_package(FastFloat REQUIRED CONFIG)
  26. + target_link_libraries(c4core PUBLIC "FastFloat::fast_float")
  27. endif()
  28. if(C4CORE_NO_DEBUG_BREAK)
  29. target_compile_definitions(c4core PUBLIC -DC4_NO_DEBUG_BREAK)