-
Notifications
You must be signed in to change notification settings - Fork 279
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
add a way to run custom scripts for environment setup #1315
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # include/vcpkg/base/system.process.h # include/vcpkg/commands.build.h # src/vcpkg/base/system.process.cpp # src/vcpkg/cmakevars.cpp # src/vcpkg/commands.build.cpp # src/vcpkg/vcpkgcmdarguments.cpp
A bit of story what I did hear: I want to install&setup Intel (Fortran) compilers before running vcpkg and have successfully compiled lapack-reference with it. Triplet x64-win:
x64-win/download-tools.cmake:
What do I get here:
Unwanted behavior:
Extensions:
|
Note: I now also have a env setup script which can setup emscripten on windows |
Could this be done inline in the triplet file by defining an "IN_PASS_0" variable? Then the user could |
Introduce:
VCPKG_ENVIRONMENT_SETUP_SCRIPTS
to run custom scripts instead or supplementing the vcvars set up environment.If the script is a cmake file -> call cmake with the paths vcpkg would use -> allows downloading of stuff before vcpkg runs any other stuff like compiler detection etc.