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

MSB1008 Error when running cmake --build with MSBuild v17 #1210

Open
yiwei00 opened this issue Jan 2, 2024 · 1 comment
Open

MSB1008 Error when running cmake --build with MSBuild v17 #1210

yiwei00 opened this issue Jan 2, 2024 · 1 comment

Comments

@yiwei00
Copy link

yiwei00 commented Jan 2, 2024

Description:

When installing glm w/ cmake on Windows 11 using MSVC and MSBuild, the MSBuild Error "MSB1008: Only one project can be specified" shows up.

OS/Tools:

  • Windows 11 Pro (Version 22H2, OS build 22621.2861)
  • MSVC v143
  • MSBuild v17.8.3

Steps to recreate:

  • Following the instructions from readme.md, the error shows up on the cmake --build build -- all step

Error:

PS C:\Path\To\glm> cmake --build build -- all
MSBuild version 17.8.3+195e7f5a3 for .NET Framework
MSBUILD : error MSB1008: Only one project can be specified.
    Full command line: '"C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" ALL_BUILD.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m all'
  Switches appended by response files:
'' came from 'C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.rsp'
Switch: all

For switch syntax, type "MSBuild -help"
@ProjectHSI
Copy link

Added information: Additionally, the install step fails.

While building is possible thanks to CMake's builtin build function, installing doesn't have a method we can use and publicly available.

This means we have to embed the project as a sub module. I'm trying not to embed projects too much in my as-of-yet undisclosed project.

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

No branches or pull requests

3 participants