Codelite projects can't be debugged/launched from Codelite
When generating a "Codelite - Unix Makefiles" project, I can build everything. But I cannot launch/debug a project from within Codelite. It can't find the executable.
In each sub-project's settings the Output File is set to ./$(ProjectName), which seems to be {CMAKE_BINARY_DIR}/
{PROJECT_NAME} (see image).
In my project the binaries are not build in the root of ${CMAKE_BINARY_DIR}.
Stepping through the cmake source I found that in cmExtraCodeLiteGenerator.cxx only EXECUTABLE_OUTPUT_PATH is queried for the binary output path, which was always empty for the projects I tried - so it defaulted. In my project I set them via CMAKE_RUNTIME_OUTPUT_DIRECTORY. If I change the code to query that variable first, the output filepath is set correctly.
That would help in my situation, where my binaries are named exactly like the project names. It won't suffice for i.e the cmake source, where the project is named "CMake" but the executable is named "cmake".
OS: Lubuntu 16.04 LTS CMake version: 3.7.2, clang 3.8.0