Why my <package>-config.cmake have <package>_include_dir and <package>_librairies empty
问题 I am trying to make a cross-platform CMake for my project (Windows and Linux). I need to use external libraries (yaml-cpp). On Linux, I just had to do an apt get and use find_package . But on Windows, I need to append the CMAKE_MODULE_PATH in order for my program to find the yaml-cpp-config.cmake . So I start by installing yaml-cpp (https://github.com/jbeder/yaml-cpp) with CMake GUI 3.16 and mingw32 ( mingw32-make install ). I have tried the library on a hello world project, and it works fine