cmSearchPath: Drop unused parameter of `ExtractWithout` method

Also,

- Replace `std::set::count()` w/ `find()`
- Replace `push_back` w/ `emplace`
2 files changed