docopt.cpp icon indicating copy to clipboard operation
docopt.cpp copied to clipboard

Please respect BUILD_SHARED_LIBS variable, and make both shared ans static library names the same

Open yurivict opened this issue 7 years ago • 2 comments

BUILD_SHARED_LIBS is defined in cmake docs (https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html) to control this. The reason this is useful is, for example, when FreeBSD (or any other system) has a policy against installing static libs this should be supported by the project itself.

Additionally, there is a confusion resulting in failures like this: /usr/local/bin/ld: cannot find -ldocopt_s

To avoid such confusion please name both libraries the same way.

yurivict avatar Nov 15 '18 17:11 yurivict

Can someone provide a patch for this?

jaredgrubb avatar Nov 28 '19 22:11 jaredgrubb

Yes, I will be able to handle this.

chfast avatar Jun 20 '20 15:06 chfast