Created attachment 69365 [details] Minimal example When C++ source file is generated using add_custom_command, the generated file has wrong path and can't be opened from kdevelop. The file entry is present in "Projects" tool view, as child of executable, but the path is pointing to CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_CURRENT_BINARY_DIR or other file when the file is really present. So, the file cannot be opened by clicking at it and trying to "Open As Byte Array" results to kdevelop crash. See attached minimal example.
Git commit 918f82758be43e037d9c0c47acf9a63b07e49291 by Aleix Pol. Committed on 30/07/2012 at 02:39. Pushed by apol into branch '4.4'. Make it possible to open inputs generated in the build directory It's not very useful because one shouldn't use the project view to debug generated files, but considering that it wasn't working anyway I thought it made sense to make it work. M +8 -3 projectmanagers/cmake/cmakemanager.cpp http://commits.kde.org/kdevelop/918f82758be43e037d9c0c47acf9a63b07e49291
Git commit bd19c7eb30e2d0042462ec3ac678f736a8c970ef by Aleix Pol. Committed on 30/07/2012 at 02:39. Pushed by apol into branch 'master'. Make it possible to open inputs generated in the build directory It's not very useful because one shouldn't use the project view to debug generated files, but considering that it wasn't working anyway I thought it made sense to make it work. M +8 -3 projectmanagers/cmake/cmakemanager.cpp http://commits.kde.org/kdevelop/bd19c7eb30e2d0042462ec3ac678f736a8c970ef