You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first, I used CPMFindPackage to add third-party dependencies, because I wanted CPM to first find out if there was a package that needed to be installed locally, and then download and install it if there wasn't.
At first, I used
CPMFindPackage
to add third-party dependencies, because I wanted CPM to first find out if there was a package that needed to be installed locally, and then download and install it if there wasn't.But then I noticed that
CPMFindPackage
does not export variables if it finds a locally installed package.Then I noticed that if I use
CPMAddPackage
and defineCPM_USE_LOCAL_PACKAGES
I can also achieve the same function and export the variables after it finds the locally installed packages.The problem is that I can't use the exported variables even though the logs output
using local package
.My CMake code is roughly like this:
Everything works fine on
Windows
andLinux
, but not onMacOS
. I don't have aMacOS
environment to test in, so I'm relying onGitHub Workflows
.The text was updated successfully, but these errors were encountered: