Skip to content

cmake: reference OpenSSL and ZLIB imported targets only when enabled#20217

Closed
JoshuaVandaele wants to merge 1 commit intocurl:masterfrom
JoshuaVandaele:pushback-fix
Closed

cmake: reference OpenSSL and ZLIB imported targets only when enabled#20217
JoshuaVandaele wants to merge 1 commit intocurl:masterfrom
JoshuaVandaele:pushback-fix

Conversation

@JoshuaVandaele
Copy link
Contributor

@JoshuaVandaele JoshuaVandaele commented Jan 7, 2026

This otherwise broke building on a parent with a static library which is available but disabled (e.g. CURL_ZLIB is set to OFF but ZLIB::ZLIB exists)

@JoshuaVandaele JoshuaVandaele force-pushed the pushback-fix branch 3 times, most recently from f537f89 to baf018c Compare January 8, 2026 00:29
This otherwise broke building on a parent with a static library which is available but disabled (e.g. CURL_ZLIB is set to OFF but ZLIB::ZLIB exists)
@vszakats vszakats changed the title cmake: Conditionally push back libraries cmake: reference OpenSSL and ZLIB imported targets only when enabled Jan 9, 2026
@vszakats vszakats closed this in 97f518e Jan 9, 2026
@vszakats
Copy link
Member

vszakats commented Jan 9, 2026

Thank you @JoshuaVandaele, merged now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants