formula: set CMAKE_PROGRAM_PATH to use shims #18742
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?We probably need to keep
CMAKE_PREFIX_PATH
environment variable as it is cleanest way of handling nested and indirectcmake
usage.See https://cmake.org/cmake/help/latest/command/find_program.html for details on search order,
CMAKE_PROGRAM_PATH
cache variable is 2ndCMAKE_PREFIX_PATH
environment variable is 3rdPATH
is 5thAn alternative could be using more specific alternatives to
CMAKE_PREFIX_PATH
. There are a number of things the variable impacts, e.g.<PackageName>_DIR
environment variables instead though may need to be careful to avoid overriding CLT and make sure case-sensitive name.PATH
CMAKE_LIBRARY_PATH
/CMAKE_FRAMEWORK_PATH
already so may cover many casesCMAKE_INCLUDE_PATH
could cover some of thisCMAKE_INCLUDE_PATH
could cover some of this