Bug 361878 - CMAKE_EXECUTABLE_SUFFIX and EXECUTABLE_OUTPUT_PATH are ignored
Summary: CMAKE_EXECUTABLE_SUFFIX and EXECUTABLE_OUTPUT_PATH are ignored
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: git master
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-16 22:59 UTC by loic.damien
Modified: 2022-11-19 05:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description loic.damien 2016-04-16 22:59:56 UTC
CMAKE_EXECUTABLE_SUFFIX seems to be ignored.
If you use CMAKE_EXECUTABLE_SUFFIX, you cannot execute/run the project because KDevelop try to use the target name instead of the executable name.

For example, if you have the following in your CMakeLists.txt:
set(CMAKE_EXECUTABLE_SUFFIX ".bar")
add_executable(foo main.cpp)

KDevelop will try to run/debug foo instead of foo.bar

Similarly, EXECUTABLE_OUTPUT_PATH is also ignored.

There is a simple workaround: manually set the path to the executable via the Executable field in the launch configuration. But there is at least one problem with that: the path is absolute. If you move the project, you have to change the configuration.

Reproducible: Always

Steps to Reproduce:
1. Use CMAKE_EXECUTABLE_SUFFIX in CMakeLists.txt
2. Add a launch configuration for the target
3. Click on Execute/Debug

Actual Results:  
kdevelop try to run an non existing executable

Expected Results:  
kdevelop runs the correct executable
Comment 1 Justin Zobel 2022-10-20 23:54:33 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-11-04 05:07:19 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-11-19 05:14:45 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!