mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
18 lines
614 B
Diff
18 lines
614 B
Diff
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)
|