Version: SVN (using KDE 4.3.0) Compiler: gcc 4.3.2 OS: Linux Installed from: SuSE RPMs I'm using the following in my CMakeLists.txt # output binaries to <builddir>/bin set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) I have set the Project Target in "Run -> Configure Launches". However, when I press "Execute current launch", I get: Could not start program ''. Make sure that the path is specified correctly. Note that if I remove the CMAKE_RUNTIME_OUTPUT_DIRECTORY stuff, the program launches correctly.
SVN commit 1022366 by apol: Let the cmake scripts set where the binaries are located. BUG: 203975 M +19 -3 cmakemanager.cpp M +8 -2 cmakemodelitems.cpp M +10 -3 cmakemodelitems.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1022366
Sorry, but it's still not fixed for me with yesterday's SVN. Trying to debug an application says: -------------------------------------------------------------------------- Application does not exist The application you are trying to debug, qclient does not exist. Check that you have specified the right application in the debugger configuration. -------------------------------------------------------------------------- Trying to execute it says: -------------------------------------------------------------------------- Could not start program ''. Make sure that the path is specified correctly. -------------------------------------------------------------------------- Maybe I should note that I have the following project layout: <project_dir>/CMakeLists.txt: set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) add_subdirectory(qclient) ... # (other subdirectories, flags, etc...) <project_dir>/qclient/CMakeLists.txt: add_executable(qclient ... I have specified the "Project target" in Launch Configurations as "qclient/qclient".
Can you send me an example so that I can verify? Thanks, Aleix
Created attachment 36974 [details] A test project
I attached a complete tree (including a build directory) of a (stripped-down) project that inhibits the problematic behavior. Thanks
The symptom is correct, the bug is incorrect. We're lacking the PROJECT_BINARY_DIR variable right now. I'll look into it right now.
SVN commit 1049852 by apol: Added PROJECT_ variables relative to the binary dir. Resolve the possible output directories. BUG: 203975 M +10 -6 cmakemanager.cpp M +3 -1 parser/cmakeprojectvisitor.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1049852
I am hitting this problem in the git master of KDevelop 5. We have the same project layout to the original report and are seeing the same symptom. We're running the AppImage on CentOS 6.8 with CMake 3.6.