mdspan icon indicating copy to clipboard operation
mdspan copied to clipboard

Consuming mdspan as dependency

Open bernhardmgruber opened this issue 4 years ago • 3 comments

I would like to use mdspan in some of my cmake-based projects as a dependency. I found a conan package here. I did not find a package for spack or vcpkg.

Do you have any plans for creating/maintaining packages for the aforementioned package managers?

From a quick look at the CMakeLists.txt, it also looks like one could include mdspan via add_subdirectory. I have not tried it though. Is this a supported/recommended way consuming mdspan in a downstream project? What would you recommend?

Thank you!

bernhardmgruber avatar Nov 29 '21 14:11 bernhardmgruber

Ok, it seems there is a vcpkg port available that is about a month old: https://github.com/microsoft/vcpkg/pull/21170.

bernhardmgruber avatar Nov 30 '21 11:11 bernhardmgruber

Yeah we probably should add a spack package. In principle you should be able to use it via add_subdirectory, I mostly have installed it though via raw cmake.

crtrott avatar Nov 30 '21 17:11 crtrott

If it can help I started to write a minimalist spack recipe for testing. You can find it here.

tpadioleau avatar Dec 21 '21 13:12 tpadioleau