bfgroup / Lyra

A simple to use, composable, command line parser for C++ 11 and beyond
https://bfgroup.github.io/Lyra/
Boost Software License 1.0
471 stars 56 forks source link

No Install Target for CMake #29

Closed jayeshbadwaik closed 4 years ago

jayeshbadwaik commented 4 years ago

Installing a CMake based library should be doable with the following commands

cmake -DCMAKE_INSTALL_PREFIX=<installation-path> <path-to-source>
cmake --build . --target install

This requires a target install to be provided by the CMakeLists. Currently such a target is not provided.

→ cmake ../src -DCMAKE_INSTALL_PREFIX=../run --log-level=WARNING
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jayesh/software/lyra/build

→ cmake --build . --target install
make: *** No rule to make target 'install'.  Stop.
grafikrobot commented 4 years ago

Resolved by https://github.com/bfgroup/Lyra/commit/991da303ef803fbaabac4b89a4afacb280735b70