Your macro doesn't find anything, it just prints values from CMakeCache.txt
, which is a persistent storage betweeen cmake
invocations (or configure
step in GUI). Your FFMPEG-related values was set by previous cmake
call and now cmake prints them.
Cache values can be changed by running cmake -DVAR=VALUE .
in your build directory.