kokkos / mdspan

Reference implementation of mdspan targeting C++23
Other
401 stars 66 forks source link

add option for stdmode install #258

Closed nmm0 closed 6 months ago

nmm0 commented 1 year ago

Anyway, this PR adds a new CMake option, MDSPAN_INSTALL_STDMODE_HEADERS that will disable installing the std-like headers <experimental/mdspan> and <experimental/mdarray>. This will hopefully avoid conflicts with any standard library that actually ships mdspan if the user is not intending to use these headers (including ones that ship this library :P). I've defaulted this to OFF which is technically a breaking change so I can switch that around. However, in general I think it shouldn't be on by default.

Also, I realized that <mdspan/mdspan.hpp> and <mdspan/mdarray.hpp> were not installed, so this fixes that too.

crtrott commented 1 year ago

You mean you defaulted to off right?

nmm0 commented 1 year ago

You mean you defaulted to off right?

woops yeah

crtrott commented 1 year ago

I think this is ok.