Bug 422661 - Extra newline at the end of cmake build type
Summary: Extra newline at the end of cmake build type
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (other bugs)
Version First Reported In: 5.5.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-09 09:50 UTC by Yavuz Mert
Modified: 2025-08-25 14:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yavuz Mert 2020-06-09 09:50:09 UTC
SUMMARY
If we use an already created build directory for the new configuration
Kdevelop adds an extra newline(\n) to the build type

STEPS TO REPRODUCE
1. On project configuration add a new cmake build configuration
2. Use an already built "Using an already created build directory."

OBSERVED RESULT
Kdevelop prints various cmake warnings because of the newline it inserted.
In the project file under ".kdev4", build type is "Build Type=release\n" or whatever build type plus "\n"

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Yavuz Mert 2020-06-09 22:34:45 UTC
I browsed the code to see if I can easily fix it, it seem that it is already fixed on master on Feb 9th but somehow is not applied on 5.5.1 version, or even 5.5.2 version.