Summary: | KDevelop crashes on CMake configuration => specific CMake macro ? | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Nicolas SAUBAT <nicolas.saubat> |
Component: | Build tools: CMake | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | 4.3.0 | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Nicolas SAUBAT
2012-08-13 16:02:16 UTC
Hi agin, I've been surprised not to have any answer to this post. Did I miss something in the edition of the bug, or you guys were on holidays ? Nevertheless, I've fixed the bug with my team, not knowing exactly why. Here is how we did, hoping this will help someone (or someone can help us understand this bug). In a CMakeLists.txt file we used the CMake command : add_subdirectory() for every subdirectories in a specific order (for dependance purpose). We add 9 subdirectories this way, each of them including a CMakeLists.txt file. Replacing these "add_subdirectory()" commands with a list and a loop accross it # get all subdirectories in a variable get_subdirectories(COMPONENTS_LIST) # Add subdirectories in CMake project foreach(COMPONENT_NAME ${COMPONENTS_LIST}) add_subdirectory(${COMPONENT_NAME}) endforeach() does the same (only the order changes), but no more segmentation fault in our case. Hope this will help, bye. multithreading bug, probably you can still get the crashes even with your cmakelists.txt change. should be fixed in the new release though, see bug 296348 . *** This bug has been marked as a duplicate of bug 296348 *** Thanks for your answer. I'm waiting for the new release to fix the bug ! Thanks ! |