-
Notifications
You must be signed in to change notification settings - Fork 286
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 VCPKG_SCRIPTS_DIR and VCPKG_TOOLS_DIR to the CMake command call #1420
base: main
Are you sure you want to change the base?
Conversation
src/vcpkg/buildenvironment.cpp
Outdated
@@ -17,6 +17,8 @@ namespace vcpkg | |||
local_variables.emplace_back("BUILDTREES_DIR", paths.buildtrees()); | |||
local_variables.emplace_back("_VCPKG_INSTALLED_DIR", paths.installed().root()); | |||
local_variables.emplace_back("DOWNLOADS", paths.downloads); | |||
local_variables.emplace_back("VCPKG_SCRIPTS_DIR", paths.scripts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be just SCRIPTS
since it is already defined in ports.cmake
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense to me
Alternately I think |
Please explain |
The only acceptable content for the scripts tree is the same content that matches the copy of |
I am still missing the why explanation here. So I still need a sentence which starts something like "because otherwise ...." or something logically similar. Whatever the decision about the cli switch this PR just passes down internal path knowledge. If this is scripts dir or the dir of the cmake entry point (ports.cmake) with the scripts subfolder added doesnt really matter. |
To make stuff mentioned in #1315 (comment) not magically (and maybe even wrongly) calculate those paths.