docopt / docopt.cpp

C++11 port of docopt
Boost Software License 1.0
1.04k stars 146 forks source link

Add version property to targets in CMakeLists.txt #89

Closed lmoellendorf closed 2 years ago

lmoellendorf commented 6 years ago

This allows CMake to create versioned .so and .a files.

This is needed in order to integrate docopt.cpp in open-embedded with a bitbake recipe like this:

DESCRIPTION = "docopt creates beautiful command-line interfaces"
HOMEPAGE = "https://github.com/docopt/docopt.cpp"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=4b242fd9ef20207e18286d73da8a6677 \
                   "
DEPENDS = ""
PR = "r0"
SRC_URI = "git://github.com/docopt/docopt.cpp.git;protocol=https;branch=master;rev=v0.6.2"

S = "${WORKDIR}/git"

inherit pkgconfig cmake

Non versioned library files result in this bitbake error:

ERROR: docopt.cpp-0.6.2-r0 do_package_qa: QA Issue: -dev package contains non-symlink .so...