Skip to content

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

Open
@yiwei00

Description

@yiwei00

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"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions