Bug 379484

Summary: KDevelop disregards target property OUTPUT_NAME
Product: [Applications] kdevelop Reporter: Alexander Potashev <aspotashev>
Component: Build tools: CMakeAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, eugene.shalygin+bugzilla.kde, flying-sheep
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 5.2.0
Sentry Crash Report:

Description Alexander Potashev 2017-05-03 16:40:28 UTC
KDevelop disregards target property OUTPUT_NAME when auto-detecting executable path for launch configuration.

Steps to reproduce:

1. Create a cmake target (e.g. "abc"); set its property OUTPUT_NAME to something else, e.g. "xyz_binary":

set_property(TARGET abc PROPERTY OUTPUT_NAME "xyz_binary")

2. Go to Run -> Run Configurations...

3. Use the "Add" drop-down to add a run configuration for the target "abc".

4. Press Shift+F9 to run the target.

Actual results: it tries to run "abc" which does not exist.

Expected results: run "xyz_binary".
Comment 1 Eugene Shalygin 2017-07-17 22:50:44 UTC
Same here
Comment 2 Eugene Shalygin 2017-07-18 00:13:52 UTC
Works in current master. Sorry for the noise.
Comment 3 Kevin Funk 2017-07-18 09:17:05 UTC
Yes, I think Aleix fixed this issue in one of his commits to KDevelop master branch (to be released as 5.2.0).

@Alexander: Please verify if possible.
Comment 4 Alexander Potashev 2017-07-20 08:26:42 UTC
(In reply to Kevin Funk from comment #3)
> Yes, I think Aleix fixed this issue in one of his commits to KDevelop master
> branch (to be released as 5.2.0).
> 
> @Alexander: Please verify if possible.

It works, thanks!
Comment 5 Kevin Funk 2017-09-21 13:23:05 UTC
*** Bug 384928 has been marked as a duplicate of this bug. ***