Weird variable behaviour with find_package

CMake 3.19+ has --debug-find which should help out with this.

Thanks. The problem is that list(APPEND) is in a function. This means that modifications don’t escape the function scope. I recommend filing an issue with IPP upstream to fix this problem.