target name fragmented in kdevelop 4.4.1
Jörg Becker
news at familiebecker.com
Tue Feb 19 15:50:49 GMT 2013
Hi,
I have a problem using target names containing cmake variables. I want all
target names to include the version number. In cmake everything works like
expected, but target names in subfolders are fragmented by kdevelop, which
means I cannot select the target in GUI.
Example:
I build two targets. The first one is defined in the top level directory
'project' and the second one is defined in directory 'project/subFolder':
project/CmakeListst.txt:
set( VERSION 1.0.0 )
project(targettest)
add_subdirectory( subFolder )
add_executable(targettest-${VERSION} main.cpp)
project/subFolder/CmakeListst.txt:
add_executable(subfolder_targettest-${VERSION} main.cpp)
Running cmake creates the following executables in the build directory:
build/targettest-1.0.0 and build/subFolder/subfolder_targettest-1.0.0
This just what I want to have. But kdevelop shows the following targets:
/targettest-1.0.0 which is correct and
/subFolder/subfolder_targettest- which misses the version number.
It seems kedevelop ignore the higher level CmakeListFile.txt and therefore
miss their variable definitions.
Do I miss something, or is it a bug? Is there another workaround than browsing
for the executables to start/debug my programs with kdevelop?
Thanks for any ideas,
Jörg
More information about the KDevelop
mailing list