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

            Bug ID: 357574
           Summary: KDevelop can't find tests/executables when
                    EXECUTABLE_OUTPUT_PATH is set
           Product: kdevelop
           Version: 4.7.1
          Platform: RedHat RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Build tools: CMake
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: nholth...@gmail.com

I'm trying to use the KDevelop Unit-test window to run my projects tests, but
KDevelop gives the following error when I try to run them:

    *** Could not start program '[path where it thinks my test is]'. Make sure
that the path is specified correctly ***

However, I'm using the cmake variable EXECUTABLE_OUTPUT_PATH to organize my
project, and KDevelop's [path where it thinks my test is] is set to the default
executable output path instead.

Is there some way to make KDevelop aware of where the test is, possible through
some CMake property on the executable target? I've tried INSTALL_RPATH,
LOCATION, and setting the WORKING_DIRECTORY on the ADD_TEST command, but none
of those things helped.

Note: I have the same problem running the executables in the debugger, but I
can work around it by manually specifying the target location in the dialog
box. Unit tests, however, don't seem to have such an override.


Reproducible: Always

Steps to Reproduce:
1. use executable_path cmake variable to move output location of an
exectuable/test
2. Attempt to run the test, or debug executable
3.

Actual Results:  
error message:     *** Could not start program '[path where it thinks my test
is]'. Make sure that the path is specified correctly ***

Expected Results:  
test should be found and run properly

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

Reply via email to