Skip to content
GitLab
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 4,103
    • Issues 4,103
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and 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
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #18219
Closed
Open
Issue created Jul 29, 2018 by Simon Richter@SimonRichter

Use 64-bit MSBuild.exe on 64-bit hosts

I have several builds failing as MSBuild.exe runs out of virtual address space (the actual machine still has around 16 GiB of free memory). Switching to the 64-bit MSBuild.exe would probably fix that, but CMake always selects the 32-bit MSBuild.exe as a build tool with --build, even when -T host=x64 is set.

Manually setting -DCMAKE_MAKE_PROGRAM:PATH="C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\MSBuild.exe" works as a workaround, but requires me to hardcode tool paths or go looking for them myself, which I'd rather avoid.

Possibly related to #16782 although this feature request is aiming at better default behaviour.

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