Visual Studio - Cmake Project - Add NetCDF
问题 I have a project that I was able to compile in Linux, but was also hoping to compile in a windows environment, namely, visual studio. I installed netcdf, but when I build using cmake, I get this error: Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 1> -- Checking for one of the modules 'netcdf' 1> CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.11/Modules/FindPkgConfig.cmake:641 (message):