'How to list variables loaded by pkg-config in cmake

In Cmake when we do find_package to look up a package, how we can find the list of variables that it loads

for example

some have this format: .._LIBRARIES

some have this format: .._LIBS

how we can list the variables and the assigned values in that package?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source