Skip to content

Build script does not work with Visual Studio 2026 #3968

@SMoraisAnsys

Description

@SMoraisAnsys

Hey, thanks for this great repository and the work you dedicate on it.
I'm opening this issue to let you know that the latest release of Visual Studio (Visual Studio 18 2026) does not work with the current build_usd.py script. The main problem seems to be that using version 2026 leads the script to defining the generator as generator = "Visual Studio 17 2022", see https://github.com/PixarAnimationStudios/OpenUSD/blob/dev/build_scripts/build_usd.py#L416
However, this doesn't work well later as this is used to run the CMake command.

I'm currently trying to run the script by simply adding a new case statement to handle my case scenario

        if IsVisualStudio2026OrGreater():
            generator = "Visual Studio 18 2026"

but since the VisualStudio version is used to define a version for Boost here and the msvc settings here I don't know which changes you would like to do.

If someone lets me know about the settings I mentioned, I can propose a quick patch for this :)

Btw, I'm on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions