mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Help: Replace link with its http redirect
This commit is contained in:
@@ -265,7 +265,7 @@ Example:
|
||||
|
||||
.. [#mebibytes] One MiB (mebibyte) is equal to 1024x1024 bytes.
|
||||
|
||||
.. _man 5 os-release: https://www.freedesktop.org/software/systemd/man/os-release.html
|
||||
.. _man 5 os-release: https://www.freedesktop.org/software/systemd/man/latest/os-release.html
|
||||
.. _various distribution-specific files: http://linuxmafia.com/faq/Admin/release-files.html
|
||||
|
||||
.. _Query Windows registry:
|
||||
|
||||
@@ -19,7 +19,7 @@ Commands
|
||||
* The :command:`string(TIMESTAMP)` command now supports the ``%V``
|
||||
specifier for ISO 8601 week numbers.
|
||||
|
||||
.. _`OS identification variables`: https://www.freedesktop.org/software/systemd/man/os-release.html
|
||||
.. _`OS identification variables`: https://www.freedesktop.org/software/systemd/man/latest/os-release.html
|
||||
|
||||
Variables
|
||||
---------
|
||||
|
||||
@@ -270,7 +270,7 @@ std::map<std::string, std::string> GetOSReleaseVariables(
|
||||
|
||||
std::map<std::string, std::string> data;
|
||||
// Based on
|
||||
// https://www.freedesktop.org/software/systemd/man/os-release.html
|
||||
// https://www.freedesktop.org/software/systemd/man/latest/os-release.html
|
||||
for (auto name : { "/etc/os-release"_s, "/usr/lib/os-release"_s }) {
|
||||
const auto& filename = cmStrCat(sysroot, name);
|
||||
if (cmSystemTools::FileExists(filename)) {
|
||||
|
||||
Reference in New Issue
Block a user