Right now the PackageManger API is comprised of three members:
find_installed,
get_package, and
install_package
In both the CMakePackageManager and the PIPPackageManger the find_installed looks for an already installed package, returning nothing if it's not found. get_package for CMakePackageManager will call FetchContent whereas get_package for PIPPackageManager wraps find_installed and raises an error if the package is not already installed. CMakePackageManger implements install_package by wrapping CMake's install commands whereas PIPPackageManager wraps pip's install command. The package managers should be implemented in a consistent manner (probably want to change the behavior of the PIPPackageManager to be more like the CMakePackageManager).
Right now the
PackageMangerAPI is comprised of three members:find_installed,get_package, andinstall_packageIn both the
CMakePackageManagerand thePIPPackageMangerthefind_installedlooks for an already installed package, returning nothing if it's not found.get_packageforCMakePackageManagerwill callFetchContentwhereasget_packageforPIPPackageManagerwrapsfind_installedand raises an error if the package is not already installed.CMakePackageMangerimplementsinstall_packageby wrapping CMake'sinstallcommands whereasPIPPackageManagerwraps pip's install command. The package managers should be implemented in a consistent manner (probably want to change the behavior of thePIPPackageManagerto be more like theCMakePackageManager).