Protected sources¶
Hunter can manage access to the package with sources protected by HTTP
user-name/password credentials. Such packages should be
marked as protected
in corresponding hunter.cmake
file. Passwords should be set in
Hunter passwords file
using
hunter_http_password
function.
Hint for GitHub users¶
You don’t have to store your personal password in passwords.cmake
file.
Instead you can generate
personal access token
and use it as PASSWORD
:
hunter_http_password(Foo USERNAME "myname" PASSWORD "123...abc")
Note
Since token used to access private repositories you have to set repo
scope (“Full control of private repositories”):