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,807
    • Issues 3,807
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • 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
  • #17828

Closed
Open
Created Mar 14, 2018 by JJscott@JJscott

"Cannot load project with duplicated project items" error with CMake v3.11.0-rc3

Generating a build with the command:

cmake .. -G "Visual Studio 15 Win64"

When loading the solution I get an error from Visual Studio, saying it failed to load and to check the output, which contains:

Cannot load project with duplicated project items: <REDACTED>\build\src\CMakeLists.txt is included as 'CustomBuild' and as 'None' item types.

One workaround for this issue is to remove the following line in src/<PROJECT_NAME>.vcxproj.

<None Include="<REDACTED>\build\src\CMakeLists.txt" />

This issue is not present in the latest release 3.10.2.

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