https://bugs.kde.org/show_bug.cgi?id=493908

            Bug ID: 493908
           Summary: Setting FOLDER property on CMake executable breaks
                    launch configuration detection
    Classification: Applications
           Product: kdevelop
           Version: 6.0.240801
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Build tools: CMake
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: git.ce...@gmail.com
  Target Milestone: ---

SUMMARY
If a FOLDER property is set on a CMake target added via add_executable, this
target is not included in the list of auto-detected lauch configurations (via
Run -> Configure Launches -> Add...)

STEPS TO REPRODUCE
1. Have a CMakeLists.txt that sets the FOLDER property on an exectuable target,
i.e.

    add_executable(${example_name} ${ARGN})
    set_target_properties(${example_name} PROPERTIES FOLDER examples)

2. Try to add a launch configuration for the executable (via Run -> Configure
Launches... -> Add...)

OBSERVED RESULT
There is no option to create a lauch configuration for the target (except the
generic "Compiled Binary" / "Plasmoid Launcher" / "Script Application" ones).
This happens even if the global USE_FOLDERS property is not set or explicitly
disabled.
If the call to set_target_properties is commented out, the lauch configuration
can be created after a KDevelop restart.

SOFTWARE/OS VERSIONS
$ kinfo
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.10.10-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700K CPU @ 4.00GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1080/PCIe/SSE2


ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to