TartanLlama / expected

C++11/14/17 std::expected with functional-style extensions
https://tl.tartanllama.xyz
Creative Commons Zero v1.0 Universal
1.54k stars 133 forks source link

Version in CMakeLists.txt does not correspond to library version #153

Open Gueckmooh opened 11 months ago

Gueckmooh commented 11 months ago

When using tag v1.1.0 and package from pacman, cmake complains that version is 1.0.0 even though version is 1.1.0.

Reproduction steps (on arch linux):

find_package(tl-expected "1.1.0")

result:

CMake Warning at CMakeLists.txt:100 (find_package):
  Could not find a configuration file for package "tl-expected" that is
  compatible with requested version "1.1.0".

  The following configuration files were considered but not accepted:

    /usr/share/cmake/tl-expected/tl-expected-config.cmake, version: 1.0.0

Installed version:

$ pacman -Ss expected
# ...
extra/tl-expected 1.1.0-1 [installed]
    C++11/14/17 std::expected with functional-style extensions