json2cmake icon indicating copy to clipboard operation
json2cmake copied to clipboard

Generate CMakeLists.txt from a compile_commands.json

Results 11 json2cmake issues
Sort by recently updated
recently updated
newest added

Ubuntu 20.04.3 LTS Python 3.8.10 json2cmake generates the following error Traceback (most recent call last): File "/home/jk2/.local/bin/json2cmake", line 8, in sys.exit(main()) File "/home/jk2/.local/lib/python3.8/site-packages/json2cmake/__init__.py", line 223, in main database.write(args.outfile, name=args.name) File...

Closes #35. I considered replacing in all cases, and can do that if requested.

Using 13e0a6ba0111b6b with Python 3.7.1 on a following (redacted, simplified, but roughly the same) `compile_commands.json`, I get following error: ``` $ json2cmake fatal: not a git repository (or any parent...

When running on Windows, we output paths like `"c:\users\..."`, and `\u` is interpreted as an escape sequence. We should instead output `"c:/users/..."` even if the `compile_commands.json` uses backslashes.

* Although manual doesn't specify this it is allowed to pass -isystem or -iquote like this: -isystem/opt/lib * If space is present before path, keep the current logic. * Simple...

This allows generating CMakeLists.txt that use ${CMAKE_SOURCE_DIR} and ${CMAKE_BINARY_DIR} instead of absolute paths from compile_commands.json.

Travis is only uploading a source tarball, not the bdist_wheel tarball, to PyPI. That means when I release a version I wait for Travis to do its thing, check PyPI,...

Fixes bug I encounter using Python 3.11, per response of [yifengyou](https://github.com/yifengyou)

json2cmake failed and reported some error ``` fengziteng@ubuntu:~/temp$ ls CMakeLists.txt compile_commands.json fengziteng@ubuntu:~/temp$ git init . hint: Using 'master' as the name for the initial branch. This default branch name hint:...