Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ValeV008 opened this issue Jul 30, 2024 · 0 comments
Open

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

ValeV008 opened this issue Jul 30, 2024 · 0 comments

Comments

@ValeV008
Copy link

ValeV008 commented Jul 30, 2024

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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant