-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for #16882: Generated CMake build when using tools.build.linker_scripts #16883
Fix for #16882: Generated CMake build when using tools.build.linker_scripts #16883
Conversation
The generated build otherwise appends the "-Tfoo.ld" argument directly without a preceding space before which can generate an invalid command line.
``` CMake Warning (dev) at /home/chipc/.conan2/p/b/mypkgbc25b469ad9ce/b/build/generators/conan_toolchain.cmake:54: Syntax Warning in cmake code at column 43 Argument not separated from preceding token by whitespace. ```
2c531e1
to
09d3616
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for your contribution @photex
You are right, there is a bug there, and the extra space is necessary.
It would be necessary to add some unit or integration test for this, to make sure this is covered and don't break again in the future. I can also try to help with this.
I have pushed some changes, fixing the test (that test will cover the change already), and trying to keep the original quotes. Can you please test this branch with your build to see if it works? Thanks! |
@memsharded you're update fixed the cmake warnings I was seeing as well. :D |
The generated build otherwise appends the "-Tfoo.ld" argument directly without a preceding space before which can generate an invalid command line.
Changelog: Bugfix: Avoid
CMakeToolchain
error when both architecture flags andtools.build:linker_scripts
are defined, due to missing space.Docs: Omit
Close #16882
develop
branch, documenting this one.