mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:03:40 +03:00
Revert: cmake: enable CURL_USE_PKGCONFIG for cross-MINGW
This reverts commit39c06f7883#15005. Combined with most Find modules now supporting `pkg-config` (39c741b7b0#15408) this change made mingw-cross builds fragile by picking up OS-native components. Also adding `/usr/include` to the header path, confusing feature detection.
This commit is contained in:
parent
39c741b7b0
commit
290607f9d4
3 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,7 @@
|
|||
###########################################################################
|
||||
@PACKAGE_INIT@
|
||||
|
||||
if(UNIX OR VCPKG_TOOLCHAIN OR MINGW) # Keep in sync with root CMakeLists.txt
|
||||
if(UNIX OR VCPKG_TOOLCHAIN OR (MINGW AND NOT CMAKE_CROSSCOMPILING)) # Keep in sync with root CMakeLists.txt
|
||||
set(_curl_use_pkgconfig_default ON)
|
||||
else()
|
||||
set(_curl_use_pkgconfig_default OFF)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue