Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,812
    • Issues 3,812
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #17455
Closed
Open
Created Nov 12, 2017 by Sergey Alexandrov@taketwo

Duplicate entries in compile_commands.json

I noticed that in one of my projects the generated compile_commands.json file contains two entries for each cpp file. Even more interesting, the compile commands of sibling entries are always slightly different; the second entry typically has some (but not all) of the compiler flags and includes missing.

I can not reproduce this behavior with other projects. And unfortunately, the project that causes trouble is pretty complex and so far I have no idea how to approach reducing it to a MWE. Thus before investing time into figuring out the cause, I thought of asking here if this perhaps is a known misconfiguration problem or a known bug in CMake.

(Environment: Ubuntu 16.04, CMake 3.10rc5)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking