diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2023-11-18 13:40:40 +0000 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2023-11-18 13:40:40 +0000 |
| commit | 1f5ecf5d211a073892e05047becd4e55f3e055c9 (patch) | |
| tree | 44514094230b9758ca6125e08c2890dc46309497 /doc | |
| parent | dc7a8b3050a2a43f49515a03ae19713dfced75dc (diff) | |
Use different variable name in GTest source path detection
We used GTEST_ROOT, which becomes an issue with 3.27 as that variable
would influence find_package behaviour by providing PREFIXES –
introduced with potentially mixed-cased name in 3.12.
CMake Warning (dev) at test/libapt/CMakeLists.txt:8 (find_package):
Policy CMP0144 is not set: find_package uses upper-case <PACKAGENAME>_ROOT
variables. Run "cmake --help-policy CMP0144" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
CMake variable GTEST_ROOT is set to:
/usr/src/googletest/googletest
For compatibility, find_package is ignoring the variable, but code in a
.cmake module might still use it.
As using this new feature isn't what we wanted at all, we just use a
different variable name to avoid the warning and potential future
problems if we would keep using this name.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
