[DynInst_API:] [dyninst/dyninst] aa7b69: Set new CMake policy for upper-case <NAME>_ROOT va...


Date: Tue, 05 Dec 2023 10:06:02 -0800
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] aa7b69: Set new CMake policy for upper-case <NAME>_ROOT va...
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: aa7b692c2087a105d652954e33642330cd49d048
      https://github.com/dyninst/dyninst/commit/aa7b692c2087a105d652954e33642330cd49d048
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2023-12-05 (Tue, 05 Dec 2023)

  Changed paths:
    M CMakeLists.txt

  Log Message:
  -----------
  Set new CMake policy for upper-case <NAME>_ROOT variables (#1642)

In CMake 3.27 and above the find_package(<PackageName>) command now
searches prefixes specified by the upper-case <PACKAGENAME>_ROOT CMake
variable and the <PACKAGENAME>_ROOT environment variable in addition to
the case-preserved <PackageName>_ROOT and <PackageName>_ROOT variables
used since policy CMP0074. This policy provides compatibility with
projects that have not been updated to avoid using <PACKAGENAME>_ROOT
variables for other purposes.

The OLD behavior for this policy is to ignore <PACKAGENAME>_ROOT
variables if the original <PackageName> has lower-case characters. The
NEW behavior for this policy is to use <PACKAGENAME>_ROOT variables.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] aa7b69: Set new CMake policy for upper-case <NAME>_ROOT va..., Tim Haines <=