Skip to content

Hunter is searching for vcvarsall.bat in the wrong location #757

Description

@ValeV008

I just started using Hunter and wanted to share my first experience.

I went through First Step example and ran the cmake configure. First time it failed because of this issue. I updated Hunter URL and ran cmake configure again.

Second time I got error:
vcvarsall.bat not found in C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/VC/Auxiliary/Build

The vcvarsall.exe file on my laptop is in C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build. So I went to file C:\Hunter_root\_Base\Download\Hunter\0.25.6\69e4a05\Unpacked\cmake\modules\hunter_setup_msvc.cmake and change around lines 211 to (added one more '/../'):

set(_hunter_vcvarsall_path
#"${_hunter_vcvarsall_path}/../../../VC/Auxiliary/Build"
"${_hunter_vcvarsall_path}/../../../../VC/Auxiliary/Build"
)

Now cmake configure is working ok so far, and i have the time to write this post as a recommendations on the issues that could be fixed. :)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions