-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Bug in CLion generation of CMakeListsPrivate.txt definitions - not escaping spaces #4102
Comments
It seems this issue is caused by #4085 @elmot, do you have any ideas? @pedrosousabarreto, could you upgrade CLion to 2021.3? |
@ivankravets Updated to Clion 2021.3 from snap edge channel and still have the same issue. This is the generated line (same as before): Clion 2021.3 EAP |
Added a comment on #4085 with a possible fix. Sorry I can't test it right now. https://github.com/platformio/platformio-core/pull/4085/files#r743905480 |
Configuration
Operating system:
Ubuntu 21.04
cmake version 3.20.2
Using CLion 2021.2.3
PlatformIO Version (
platformio --version
):5.2.2
Description of problem
After the upgrade to 5.2.2, the generation of CMakeListsPrivate.txt is not escaping spaces in add_definitions values of the CMAKE_BUILD_TYPE blocks.
Apparently this version no longer wraps the values in single quotes.
Steps to Reproduce
CMake execution log now returns missing files errors:
Actual Results
Example of file generated by v5.2.2
Notice the missing single quotes after -D and not escaped spaces on the last line:
Expected Results
Same file generated by v5.1.1.
Notice the single quotes wrapping the flag values:
CMake works well if I escape the spaces or wrap the value in single quotes.
Both variants work:
The generated one fails:
If problems with PlatformIO Build System:
The content of
platformio.ini
:The text was updated successfully, but these errors were encountered: