Bug 422661

Summary: Extra newline at the end of cmake build type
Product: [Applications] kdevelop Reporter: Yavuz Mert <yavuzmertt>
Component: Build tools: CMakeAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.5.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.