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/wg21-linear-algebra/use-external-mdspan.patch | |
Diffstat (limited to 'vcpkg/ports/wg21-linear-algebra/use-external-mdspan.patch')
| -rw-r--r-- | vcpkg/ports/wg21-linear-algebra/use-external-mdspan.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/wg21-linear-algebra/use-external-mdspan.patch b/vcpkg/ports/wg21-linear-algebra/use-external-mdspan.patch new file mode 100644 index 0000000..a5a70c1 --- /dev/null +++ b/vcpkg/ports/wg21-linear-algebra/use-external-mdspan.patch @@ -0,0 +1,17 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7821b27..723a1a9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -12,7 +12,11 @@ include(GNUInstallDirs) + include(CMakeDependentOption) + include(CMakePackageConfigHelpers) + +-if(EXISTS ${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) ++option(USE_EXTERNAL_MDSPAN "Use external copy of mdspan" OFF) ++ ++if(${USE_EXTERNAL_MDSPAN}) ++ find_package(mdspan CONFIG REQUIRED) ++elseif(EXISTS ${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) + include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) + conan_basic_setup() + find_package(mdspan CONFIG REQUIRED) |