Fix CMake configure error: move add_dependencies after target definitions#3
Fix CMake configure error: move add_dependencies after target definitions#3Copilot wants to merge 4 commits into
Conversation
…and wpa_supplicant_exec target definitions Co-authored-by: fulvius31 <18355812+fulvius31@users.noreply.github.com>
|
@copilot I just need to know if this issue caused the build to fail in hosts that did not have bison and flex installed |
Yes — this The dummy flex/bison scripts on lines 44-51 already handle the libnl requirement, but you couldn't tell because CMake configuration was dying first. With this fix (commit 60facc1), CMake configure should succeed and the dummy scripts should handle the flex/bison dependency without needing them installed on the host. |
@copilot So, with this fix we can remove all these .c and .h that I imported to make it work in a host that did not have bison and flex installed? I'm referring to : |
No, those files should stay. Here's why: The dummy flex/bison scripts only do However, during Your PATCH_COMMAND (lines 140-149) copies these pre-generated files with fresh timestamps into the libnl source tree, ensuring they're newer than the So the two mechanisms work together:
|
@copilot How can I get rid of those .c and .h files ? |
…amps instead Co-authored-by: fulvius31 <18355812+fulvius31@users.noreply.github.com>
... Done in f830a77. Replaced the |
|
@copilot the build now is failing |
…d failure) Co-authored-by: fulvius31 <18355812+fulvius31@users.noreply.github.com>
Fixed in fee7995 — reverted the file removal. The Those 8 files cannot be removed without requiring flex/bison on the build host. If you want to eliminate them, the cleanest option is to install flex and bison in your CI environment ( Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
add_dependencies(wpsnative ... pixiewps_exec wpa_supplicant_exec)referenced targets before theiradd_custom_target()declarations, causing a CMake configure-time failure. This broke builds in CI environments (including masking the dummy flex/bison workaround).add_dependencies(wpsnative ...)to after bothpixiewps_execandwpa_supplicant_exectarget definitions at the end of the file💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.