arximboldi / immer

Postmodern immutable and persistent data structures for C++ — value semantics at scale
https://sinusoid.es/immer
Boost Software License 1.0
2.48k stars 177 forks source link

Add export CMake Config version file #250

Closed LilyWangLL closed 1 year ago

LilyWangLL commented 1 year ago

There is an vcpkg issue: https://github.com/microsoft/vcpkg/issues/28864, some users need use find_package(immer VERSION 0.8.0) feature.

But this port doesn't have this feature. So I submit this PR to add export CMake Config version file, this will fix the use of find special version of immer like find_package(immer VERSION 0.8.0), the parameter SameMajorVersion applies to the version with major 0.

tocic commented 1 year ago

This addresses one of the problems mentioned in #57.