Bug 379484 - KDevelop disregards target property OUTPUT_NAME
Summary: KDevelop disregards target property OUTPUT_NAME
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 384928 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-03 16:40 UTC by Alexander Potashev
Modified: 2017-09-21 13:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***