`VCPKG_TRACE_FIND_PACKAGE` produces logs although `CMAKE_DISABLE_FIND_PACKAGE_` is set
Open
- Dominant language
- CMake
- Stars
- 27.5k
- Forks
- 7.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 321
Description
**Repro**
Using port `sdl2`:
- Set `-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON` and `-DVCPKG_TRACE_FIND_PACKAGE=ON` in `OPTIONS`
- Notice that the configure logs still contain `find_package(Git )`
**Expected behaviour**
Don't see `find_package(Git )` in the logs.
It would make it easier to see if finding a certain package is actually disabled or not - especially if we would add a post build check for optional calls to `find_package`.
/cc: @dg0yt Related: #27982
Contributor guide
Assessment
This issue has not been assessed yet.