git 命令理解的 URL 可以是 HTTPS 或 SSH 格式。
在 CMake 中,可以使用 git 命令理解的任何 URLExternalProject_Add来指定指定的GIT_REPOSITORYURL。
必须提供使用 HTTPS 用户凭据才能“克隆”私有存储库。对于ExternalProject_Add,这种机制以 的形式HTTP_USERNAME和HTTP_PASSWORD使用时存在DOWNLOAD_COMMAND。
因为GIT_REPOSITORY似乎没有这样的方法。使用时:
include( ExternalProject )
ExternalProject_Add(test
GIT_REPOSITORY git@github.com:myuser/myprivaterepo.git
GIT_REMOTE_NAME origin
)
Run Code Online (Sandbox Code Playgroud)
在私有存储库上,给出以下错误:
fatal: could not read Username for 'https://github.com': No such device or address
Run Code Online (Sandbox Code Playgroud)
GIT_REPOSITORY在使用 HTTPS 连接到私有存储库时,如何让 CMake 请求密码ExternalProject_Add?
我有一个 doxygen 为每个发行版本生成的文档:
doc/1.0.0/index.html
doc/1.0.1/index.html
...
Run Code Online (Sandbox Code Playgroud)
如何在 html 文档中选择版本?作为示例,请注意本示例中 html 标头中的下拉选择框。
我不知道 doxygen 有这样的内置功能,所以我认为它是一个自定义标头。
问题
如何在 doxygen 生成的 html 文档中选择版本?