curl:x86-mingw-static build failure #49516
Unanswered
appkidsdev
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Upstream bug, will be fixed by #49531 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Operating system
Windows
Compiler
MinGW
Steps to reproduce the behavior
I build my project:
LANGUAGES CXX. (NOT C)
VCPKG_TARGET_TRIPLET=x86-mingw-static
So I installed curl:x86-mingw-static with vcpkg
In my project CMakeLists.txt file there is:
Build:
Get error:
Yes, I know it's because in <vcpkg_dir>\packages\curl_x86-mingw-static\share\curl\CURLConfig.cmake lib CURL::win32_winsock are build only if CMAKE_C_COMPILER_ID STREQUAL="GNU". There is no check for CMAKE_CXX_COMPILER_ID (and ofcause in my case CMAKE_C_COMPILER_ID STREQUAL=""):
If I add C_COMPILER to my project or edit CURLConfig.cmake by adding check to CMAKE_CXX_COMPILER_ID, everything is ok.
But I dont add C compiler to my project or edit curl:x86-mingw-static package source .
Is it error curl:x86-mingw-static src?
Or I'm doing something wrong?
Thank you very much for any help!
Beta Was this translation helpful? Give feedback.
All reactions