Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project load failing in Visual Studio 2017 #46

Closed
fcbertoldi opened this issue May 29, 2018 · 4 comments
Closed

Project load failing in Visual Studio 2017 #46

fcbertoldi opened this issue May 29, 2018 · 4 comments

Comments

@fcbertoldi
Copy link

fcbertoldi commented May 29, 2018

When building the project with Visual Studio 2017 I had the following error (translated, original message was in portuguese):

src\Glitter\Build\vc15\Glitter.vcxproj : error  : unable to load project with duplicated itens: src\Glitter\CMakeLists.txt is included as 'CustomBuild' and 'None' types.

Removing ${PROJECT_CONFIGS} from the list of sources in add_executable solves the problem.

PC settings:
Windows 10 version 1803
CMake version: 3.11.0.
Visual Studio 2017 version 15.7.2

@Polytonic
Copy link
Owner

Hmm. I can't recall having tried with VS2017 yet. Are you using Community Edition?

This week is a bit of a mess for me, but I can try to take a look at this over the weekend. 😬

@fcbertoldi
Copy link
Author

That's fine, I just wanted to report the problem, no need to hurry. 🙂

The problem occurred in both VS2013 and VS2017 Professional Edition.

In my home PC with VS2017 Community Edition I applied the fix without first reproducing the problem, and it worked.

@Polytonic
Copy link
Owner

Hm, I wasn't able to reproduce this locally. I did some research online -- looks like this is actually a CMake bug. If it's not too much trouble, would you mind updating your cmake installation and trying again?

For what it's worth, ${PROJECT_CONFIGS} is only needed if you want CMakeLists.txt and Readme.md and such to show in the Solution Explorer. If you don't need to modify those much, your workaround is probably fine. 🙂

@Polytonic
Copy link
Owner

Closing for now, per my previous comment, and there has not been an update in a while. Feel free to reopen if this comes up again. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants