How to find FindPkgConfig.cmake on Windows

Hi,

I’m trying to get a CMakeLists.txt file that works on Linux fine working on Windows using the MSVC toolchain and standalone CMake. My current issue is that FindPkgConfig.cmake can’t be found although I see it exists in "C:\CMake\share\cmake-3.30\Modules". Is the standard way to add this folder to the environment’s PATH var? C:\CMake\bin is currently the only cmake-related path added there.

The other question I have is, do I need this module for finding packages with a modern verson of CMake? The CMakeLists.txt that I’m working with uses the lines:

FIND_PACKAGE(PkgConfig REQUIRED)
PKG_CHECK_MODULES(SNDFILE REQUIRED sndfile)

although I don’t understand what the benefit is of using PKG_CHECK_MODULES over something like FIND_PACKAGE(SNDFILE) (other than the package can’t be found if I go with the latter).

Thanks for any help in understanding how this all fits together,
Rich