Comments out export(PACKAGE ...). As of cmake@3.15, this is a no-op. Prior versions will populate the user package registry (~/.cmake), which can confuse downstream builds. See https://cmake.org/cmake/help/latest/policy/CMP0090.html
PR Checklist
[x] Code is formatted.
[x] Adds a test for any bugs fixed. Adds tests for new features.
PR Summary
Comments out
export(PACKAGE ...)
. As ofcmake@3.15
, this is a no-op. Prior versions will populate the user package registry (~/.cmake
), which can confuse downstream builds. See https://cmake.org/cmake/help/latest/policy/CMP0090.htmlPR Checklist