diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/red0124-ssp/no-fetchcontent.patch | |
Diffstat (limited to 'vcpkg/ports/red0124-ssp/no-fetchcontent.patch')
| -rw-r--r-- | vcpkg/ports/red0124-ssp/no-fetchcontent.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/red0124-ssp/no-fetchcontent.patch b/vcpkg/ports/red0124-ssp/no-fetchcontent.patch new file mode 100644 index 0000000..9077846 --- /dev/null +++ b/vcpkg/ports/red0124-ssp/no-fetchcontent.patch @@ -0,0 +1,40 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index da12e2a..9881489 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -16,19 +16,6 @@ if(SSP_INCLUDE_WITHOUT_SYSTEM) + set(SSP_WARNING_GUARD "") + endif() + +-# ---- Dependencies ---- +- +-include(FetchContent) +-fetchcontent_declare( +- fast_float +- GIT_REPOSITORY https://github.com/red0124/fast_float.git +- GIT_TAG origin/meson +- GIT_SHALLOW TRUE +-) +- +-fetchcontent_makeavailable(fast_float) +-set(FAST_FLOAT_SOURCE_DIR "${FETCHCONTENT_BASE_DIR}/fast_float-src") +- + # ---- Declare library ---- + + add_library(ssp INTERFACE) +@@ -39,7 +26,6 @@ target_include_directories( + ${SSP_WARNING_GUARD} + INTERFACE + "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>" +- "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/fast_float>" + ) + + target_compile_features(ssp INTERFACE cxx_std_17) +@@ -62,7 +48,6 @@ set(SSP_INCLUDE_DIRECTORY "${CMAKE_INSTALL_INCLUDEDIR}") + install( + DIRECTORY + "${PROJECT_SOURCE_DIR}/include/" +- "${FAST_FLOAT_SOURCE_DIR}/include/" + DESTINATION "${SSP_INCLUDE_DIRECTORY}" + COMPONENT ssp_Development + ) |