-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake: add BUILD_TESTING, fix MSVC with static + shared #213
Conversation
0804f71
to
ef7fbd3
Compare
Same as nghttp2/nghttp2#2092 but just for nghttp3. And same as ngtcp2/ngtcp2#1189 |
cc @vszakats |
I'd suggest changing the description to [ Since https://github.com/nghttp2/nghttp2/pull/2092 renamed the shared/static enabler variables (I'm not sure about the reasons), now we have a disparity between nghttp2 and nghttp3/ngtcp2. If we want to keep parity, we'd either need to rename those variables in the latter two (breaking compatibility for everyone), or rename back in nghttp2. ] |
ef7fbd3
to
73a005e
Compare
Fixed and updated the PR title and description.
The actual change happened in nghttp2/nghttp2@d9edee4 which I'm guessing was to align with CMake's built-in variable |
Add a new option `BUILD_TESTING` to control whether or not the library is built with testing. Also fix a library naming conflict when building both static and shared libraries in MSVC by setting a default of `_static` for `STATIC_LIB_SUFFIX`.
73a005e
to
0722662
Compare
Thank you, LGTM!
Agreed with |
For good measure (they were implicitly not built before this patch). Support pending for nghttp3 and ngtcp2: ngtcp2/nghttp3#213 ngtcp2/ngtcp2#1189
Thank you both. Merged now. |
Add a new option
BUILD_TESTING
to control whether or not the library is built with testing. Also fix a library naming conflict when building both static and shared libraries in MSVC by setting a default of_static
forSTATIC_LIB_SUFFIX
.