From kdevelop-bugs Thu Sep 27 07:03:56 2012 From: Andre Stein Date: Thu, 27 Sep 2012 07:03:56 +0000 To: kdevelop-bugs Subject: [Bug 293750] when creating cmake test Message-Id: X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=134872953917853 https://bugs.kde.org/show_bug.cgi?id=293750 --- Comment #7 from Andre Stein --- What about this idea: Cmake allows to generate a json file (compile_commands.json) which contains all source files along its build command in a JSON array: [ { "directory": "/home/stone/Documents/stone-files/steinsoft/projects/android/rockfall/src/jni/build", "command": "/usr/bin/c++ -pedantic -Wall -I/home/stone/Documents/stone-files/steinsoft/projects/android/rockfall/src/jni/rockfall -I/home/stone/Documents/stone-files/steinsoft/projects/android/rockfall/src/jni/inc -I/usr/include/irrlicht -o CMakeFiles/rockfall.dir/unix/main.cpp.o -c /home/stone/Documents/stone-files/steinsoft/projects/android/rockfall/src/jni/unix/main.cpp", "file": "/home/stone/Documents/stone-files/steinsoft/projects/android/rockfall/src/jni/unix/main.cpp" }, ... ] The file will be automatically generated when -DCMAKE_EXPORT_COMPILE_COMMANDS=on is specified during cmake configuration. This way we could ask the build system itself anytime the cmake parser fails to get all information needed. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs