Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply Jan-Willem Blokland's CMake patches to build both static and sh…
…ared libraries, plus some other CMake extensions.
- Loading branch information
2410fbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this CMake antipattern (build both shared & static in one build)? Isn't it a breaking change to static lib names for Visual Studio?
Moreover, a custom CMake config file is weird while CMake has a module with nice macros to generate robust config files in few lines. Requiring to set some
PCRE2_USE_STATIC_LIBS
(side effect of the antipattern above) before afind_package()
call if you want to be sure that static libs are properly found is quite tedious and error prone.How downstream libraries can know in advance which flavor will be installed by their users? Answer: they can't know in advance.