Skip to content

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Oct 19, 2025

Based on existing code and commit history it appears
CURL_DISABLE_INSTALL means to prevent calling install();
CURL_ENABLE_EXPORT_TARGET means to prevent calling export() and
install()s with EXPORT in them.

Fix them to also apply to the lib and src directories in that vain:

  • lib: honor CURL_DISABLE_INSTALL
  • src: honor CURL_DISABLE_INSTALL
  • src: honor CURL_ENABLE_EXPORT_TARGET

https://cmake.org/cmake/help/v4.2/command/install.html
https://cmake.org/cmake/help/v4.2/command/export.html


https://github.com/curl/curl/pull/19144/files?w=1

@vszakats vszakats added the cmake label Oct 19, 2025
@vszakats vszakats marked this pull request as draft October 19, 2025 14:17
@vszakats vszakats changed the title [WIP] cmake: try untangling two no-install options cmake: fix CURL_DISABLE_INSTALL and CURL_ENABLE_EXPORT_TARGET to apply to lib and src Nov 19, 2025
@vszakats vszakats changed the title cmake: fix CURL_DISABLE_INSTALL and CURL_ENABLE_EXPORT_TARGET to apply to lib and src cmake: apply CURL_DISABLE_INSTALL and CURL_ENABLE_EXPORT_TARGET to lib and src Nov 19, 2025
@vszakats vszakats marked this pull request as ready for review November 19, 2025 23:04
@vszakats vszakats changed the title cmake: apply CURL_DISABLE_INSTALL and CURL_ENABLE_EXPORT_TARGET to lib and src cmake: honor CURL_DISABLE_INSTALL and CURL_ENABLE_EXPORT_TARGET where missing Nov 19, 2025
@vszakats vszakats changed the title cmake: honor CURL_DISABLE_INSTALL and CURL_ENABLE_EXPORT_TARGET where missing cmake: honor CURL_DISABLE_INSTALL and CURL_ENABLE_EXPORT_TARGET in lib and src Nov 19, 2025
@vszakats vszakats closed this in 7e8f36b Nov 19, 2025
@vszakats vszakats deleted the cm-noinst-fix branch November 19, 2025 23:23
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.

1 participant