Summary: | When you add a new add_executable in the CMakeLists.txt it does not appear as a Project Target in the launch configuration until you reload the project. | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | David <daviddoria> |
Component: | Build tools: CMake | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aleixpol |
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | 4.2.3 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdevelop/5c50e4501d844ae6e72dc24b6654c4a6f27df931 | Version Fixed In: |
Description
David
2011-11-22 13:08:07 UTC
This happens not only if you actually add a new executable to the CMakeLists.txt, but also if you have a conditional that you enable through the KDevelop CMake interface that enables an add_executable line that is already present. I'm sorry but I can't reproduce it. Are you running master? 4.2? I just reproduced it again. With the 'Develop' branch of this repository: https://github.com/daviddoria/PatchBasedInpainting I checked it out, and opened it in KDevelop. The first time I hit 'build', nothing happens (correctly, because nothing is enabled to build by default). Then I go into the project options and check the "Tests" CMake option. When I build now, the tests build correctly. However, when I go to Run->Launch Configurations, there are no items in the executables list to select! If you re-open KDevelop, they show right? I get some launchers at least... Sure, either reopening KDevelop or reopening the project makes them appear. Git commit b58a9926a0cf274d02a1c94545ab3adb4843c4bf by Aleix Pol. Committed on 20/06/2012 at 03:34. Pushed by apol into branch '4.3'. Make sure the "modified" signals from the fs are received. For some reason, KDirWatch was signaling the modified CMakeCache.txt files as "created". Listen to that M +1 -0 projectmanagers/cmake/cmakemanager.cpp http://commits.kde.org/kdevelop/b58a9926a0cf274d02a1c94545ab3adb4843c4bf Git commit 5c50e4501d844ae6e72dc24b6654c4a6f27df931 by Aleix Pol. Committed on 20/06/2012 at 03:34. Pushed by apol into branch 'master'. Make sure the "modified" signals from the fs are received. For some reason, KDirWatch was signaling the modified CMakeCache.txt files as "created". Listen to that M +1 -0 projectmanagers/cmake/cmakemanager.cpp http://commits.kde.org/kdevelop/5c50e4501d844ae6e72dc24b6654c4a6f27df931 |