<!-- Only file bugs here! Ask questions on the mailing lists https://curl.se/mail/ SECURITY RELATED? Post it here: https://hackerone.com/curl There are collections of known issues to be aware of: https://curl.se/docs/knownbugs.html https://curl.se/docs/todo.html --> ### I did this After running `vcpkg install curl` , running `grep HAVE_POLL_FINE <VCPKG_DIR>/buildtrees/curl/x64-linux-rel/lib/curl_config.h`, it shows ```c++ /* #undef HAVE_POLL_FINE */ ``` Without poll API, curl multi-api cannot handle more than 1024 concurrent connections with `select` API. ### I expected the following curl build with poll api supported: `HAVE_POLL_FINE` should be defined in `curl_config.h` ### curl/libcurl version 7.84.0 ### operating system Linux phillip-dev 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ### Root Cause CMake script skip detecting poll API if `CMAKE_TOOLCHAIN_FILE` defined(My guess: skip detecting POLL API if cross-compile). `CMAKE_TOOLCHAIN_FILE` is always defined in vcpkg:https://vcpkg.io/en/docs/maintainers/vcpkg_cmake_configure.html#implicit-options https://github.com/curl/curl/blob/bbb36409de55fcf8e0110951c26896f59ba8aa5f/CMake/OtherTests.cmake#L88
Activity
OtherTests.cmake: check for cross-compile, not for toolchain
bagder commentedon Nov 16, 2022
Does #9923 fix the problem for you?
comphilip commentedon Nov 16, 2022
@bagder Yes it does fix the problem.
bagder commentedon Nov 16, 2022
Excellent, thanks for confirming!