g-truc / glm

OpenGL Mathematics (GLM)
https://glm.g-truc.net
Other
9.1k stars 2.12k forks source link

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

Open yiwei00 opened 8 months ago

yiwei00 commented 8 months ago

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:

Steps to recreate:

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 commented 8 months ago

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.