libnetconf2 icon indicating copy to clipboard operation
libnetconf2 copied to clipboard

Support building a static library

Open jktjkt opened this issue 2 years ago • 2 comments

This is literally the bare minimum that one has to do in order to let a properly configured CMake do its thing and produce a static library.

v2: be lazy and rely on CMake's builtin features

~~I'm deliberately not using CMake's standard way through the BUILD_SHARED_LIBS option because the other libraries in the NETCONF/YANG stack already stick to this custom convention.~~

jktjkt avatar Nov 14 '23 15:11 jktjkt

Alright, seems like the right way to support this and we should update other projects this way, too. But please fix the conflicts before merging.

michalvasko avatar Nov 15 '23 07:11 michalvasko

this will need some time on my end because we're currently stuck with the pre-v3/v4/whatever recent push (and we're testing some server-specific mock with actual communication samples, so that might take time)

jktjkt avatar Nov 15 '23 10:11 jktjkt