aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/wg21-linear-algebra/use-external-mdspan.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/wg21-linear-algebra/use-external-mdspan.patch')
-rw-r--r--vcpkg/ports/wg21-linear-algebra/use-external-mdspan.patch17
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)