Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

build(windows): compile commands database not generated #138

Description

@t-bre

Description

Compile commands database (compile_commands.json) is not generated when building with CMake on Windows. This database helps improve Intellisense in vscode.

The CMAKE_EXPORT_COMPILE_COMMANDS option doesn't support the msbuild Visual studio generators. Hence Windows users get the issue of compile_commands.json not found.

Steps To Reproduce

  1. Build on Windows with CMake.
  2. Check build folder.
  3. No compile_commands.json file.

Environment

os       : Windows
compiler : msvc (via msbuild)

Expected Behaviour

Compile commands database is generated.

Possible Solutions

  • Investigate another CMAKE command/option.
  • Look for other tools which can generate compilation databases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuildBuild and toolchainhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions