mirror of
https://github.com/reactos/CMake.git
synced 2025-02-02 01:55:03 +00:00
Merge topic 'add-findpackage-root-prefix'
fe8f08d2 find_*: Add docs for PackageRoot search path group 57744ca9 find_*: Add tests for PackageRoot search path group ef3d360a find_*: Add a new PackageRoot search path group Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !796
This commit is contained in:
commit
8ca236592b
@ -16,8 +16,9 @@ The general signature is:
|
||||
[PATH_SUFFIXES suffix1 [suffix2 ...]]
|
||||
[DOC "cache documentation string"]
|
||||
[NO_DEFAULT_PATH]
|
||||
[NO_CMAKE_ENVIRONMENT_PATH]
|
||||
[NO_PACKAGE_ROOT_PATH]
|
||||
[NO_CMAKE_PATH]
|
||||
[NO_CMAKE_ENVIRONMENT_PATH]
|
||||
[NO_SYSTEM_ENVIRONMENT_PATH]
|
||||
[NO_CMAKE_SYSTEM_PATH]
|
||||
[CMAKE_FIND_ROOT_PATH_BOTH |
|
||||
@ -60,6 +61,10 @@ If ``NO_DEFAULT_PATH`` is specified, then no additional paths are
|
||||
added to the search.
|
||||
If ``NO_DEFAULT_PATH`` is not specified, the search process is as follows:
|
||||
|
||||
.. |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX_SUBDIR| replace::
|
||||
|prefix_XXX_SUBDIR| for each ``<prefix>`` in ``PackageName_ROOT`` if called
|
||||
from within a find module
|
||||
|
||||
.. |CMAKE_PREFIX_PATH_XXX_SUBDIR| replace::
|
||||
|prefix_XXX_SUBDIR| for each ``<prefix>`` in :variable:`CMAKE_PREFIX_PATH`
|
||||
|
||||
@ -71,7 +76,18 @@ If ``NO_DEFAULT_PATH`` is not specified, the search process is as follows:
|
||||
|prefix_XXX_SUBDIR| for each ``<prefix>`` in
|
||||
:variable:`CMAKE_SYSTEM_PREFIX_PATH`
|
||||
|
||||
1. Search paths specified in cmake-specific cache variables.
|
||||
1. If called from within a find module, search prefix paths unique to the
|
||||
current package being found. Specifically look in the ``PackageName_ROOT``
|
||||
CMake and environment variables. The package root variables are maintained
|
||||
as a stack so if called from nested find modules, root paths from the
|
||||
parent's find module will be searchd after paths from the current module,
|
||||
i.e. ``CurrentPackage_ROOT``, ``ENV{CurrentPackage_ROOT}``,
|
||||
``ParentPackage_ROOT``, ``ENV{ParentPacakge_ROOT}``, etc.
|
||||
This can be skipped if ``NO_PACKAGE_ROOT_PATH`` is passed.
|
||||
|
||||
* |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX|
|
||||
|
||||
2. Search paths specified in cmake-specific cache variables.
|
||||
These are intended to be used on the command line with a ``-DVAR=value``.
|
||||
The values are interpreted as :ref:`;-lists <CMake Language Lists>`.
|
||||
This can be skipped if ``NO_CMAKE_PATH`` is passed.
|
||||
@ -80,7 +96,7 @@ If ``NO_DEFAULT_PATH`` is not specified, the search process is as follows:
|
||||
* |CMAKE_XXX_PATH|
|
||||
* |CMAKE_XXX_MAC_PATH|
|
||||
|
||||
2. Search paths specified in cmake-specific environment variables.
|
||||
3. Search paths specified in cmake-specific environment variables.
|
||||
These are intended to be set in the user's shell configuration,
|
||||
and therefore use the host's native path separator
|
||||
(``;`` on Windows and ``:`` on UNIX).
|
||||
@ -90,17 +106,17 @@ If ``NO_DEFAULT_PATH`` is not specified, the search process is as follows:
|
||||
* |CMAKE_XXX_PATH|
|
||||
* |CMAKE_XXX_MAC_PATH|
|
||||
|
||||
3. Search the paths specified by the ``HINTS`` option.
|
||||
4. Search the paths specified by the ``HINTS`` option.
|
||||
These should be paths computed by system introspection, such as a
|
||||
hint provided by the location of another item already found.
|
||||
Hard-coded guesses should be specified with the ``PATHS`` option.
|
||||
|
||||
4. Search the standard system environment variables.
|
||||
5. Search the standard system environment variables.
|
||||
This can be skipped if ``NO_SYSTEM_ENVIRONMENT_PATH`` is an argument.
|
||||
|
||||
* |SYSTEM_ENVIRONMENT_PATH_XXX|
|
||||
|
||||
5. Search cmake variables defined in the Platform files
|
||||
6. Search cmake variables defined in the Platform files
|
||||
for the current system. This can be skipped if ``NO_CMAKE_SYSTEM_PATH``
|
||||
is passed.
|
||||
|
||||
@ -108,7 +124,7 @@ If ``NO_DEFAULT_PATH`` is not specified, the search process is as follows:
|
||||
* |CMAKE_SYSTEM_XXX_PATH|
|
||||
* |CMAKE_SYSTEM_XXX_MAC_PATH|
|
||||
|
||||
6. Search the paths specified by the PATHS option
|
||||
7. Search the paths specified by the PATHS option
|
||||
or in the short-hand version of the command.
|
||||
These are typically hard-coded guesses.
|
||||
|
||||
|
@ -8,6 +8,9 @@ find_file
|
||||
.. |prefix_XXX_SUBDIR| replace:: ``<prefix>/include``
|
||||
.. |entry_XXX_SUBDIR| replace:: ``<entry>/include``
|
||||
|
||||
.. |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX| replace::
|
||||
``<prefix>/include/<arch>`` if :variable:`CMAKE_LIBRARY_ARCHITECTURE`
|
||||
is set, and |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX_SUBDIR|
|
||||
.. |CMAKE_PREFIX_PATH_XXX| replace::
|
||||
``<prefix>/include/<arch>`` if :variable:`CMAKE_LIBRARY_ARCHITECTURE`
|
||||
is set, and |CMAKE_PREFIX_PATH_XXX_SUBDIR|
|
||||
|
@ -8,6 +8,9 @@ find_library
|
||||
.. |prefix_XXX_SUBDIR| replace:: ``<prefix>/lib``
|
||||
.. |entry_XXX_SUBDIR| replace:: ``<entry>/lib``
|
||||
|
||||
.. |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX| replace::
|
||||
``<prefix>/lib/<arch>`` if :variable:`CMAKE_LIBRARY_ARCHITECTURE` is set,
|
||||
and |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX_SUBDIR|
|
||||
.. |CMAKE_PREFIX_PATH_XXX| replace::
|
||||
``<prefix>/lib/<arch>`` if :variable:`CMAKE_LIBRARY_ARCHITECTURE` is set,
|
||||
and |CMAKE_PREFIX_PATH_XXX_SUBDIR|
|
||||
|
@ -64,8 +64,9 @@ The complete Config mode command signature is::
|
||||
[PATHS path1 [path2 ... ]]
|
||||
[PATH_SUFFIXES suffix1 [suffix2 ...]]
|
||||
[NO_DEFAULT_PATH]
|
||||
[NO_CMAKE_ENVIRONMENT_PATH]
|
||||
[NO_PACAKGE_ROOT_PATH]
|
||||
[NO_CMAKE_PATH]
|
||||
[NO_CMAKE_ENVIRONMENT_PATH]
|
||||
[NO_SYSTEM_ENVIRONMENT_PATH]
|
||||
[NO_CMAKE_PACKAGE_REGISTRY]
|
||||
[NO_CMAKE_BUILDS_PATH] # Deprecated; does nothing.
|
||||
@ -249,7 +250,13 @@ The set of installation prefixes is constructed using the following
|
||||
steps. If ``NO_DEFAULT_PATH`` is specified all ``NO_*`` options are
|
||||
enabled.
|
||||
|
||||
1. Search paths specified in cmake-specific cache variables. These
|
||||
1. Search paths specified in the ``PackageName_ROOT`` CMake and environment
|
||||
variables. The package root variables are maintained as a stack so if
|
||||
called from within a find module, root paths from the parent's find
|
||||
module will also be searched after paths for the current package. This can
|
||||
be skipped if ``NO_PACKAGE_ROOT_PATH`` is passed.
|
||||
|
||||
2. Search paths specified in cmake-specific cache variables. These
|
||||
are intended to be used on the command line with a ``-DVAR=value``.
|
||||
The values are interpreted as :ref:`;-lists <CMake Language Lists>`.
|
||||
This can be skipped if ``NO_CMAKE_PATH`` is passed::
|
||||
@ -258,7 +265,7 @@ enabled.
|
||||
CMAKE_FRAMEWORK_PATH
|
||||
CMAKE_APPBUNDLE_PATH
|
||||
|
||||
2. Search paths specified in cmake-specific environment variables.
|
||||
3. Search paths specified in cmake-specific environment variables.
|
||||
These are intended to be set in the user's shell configuration,
|
||||
and therefore use the host's native path separator
|
||||
(``;`` on Windows and ``:`` on UNIX).
|
||||
@ -269,26 +276,26 @@ enabled.
|
||||
CMAKE_FRAMEWORK_PATH
|
||||
CMAKE_APPBUNDLE_PATH
|
||||
|
||||
3. Search paths specified by the ``HINTS`` option. These should be paths
|
||||
4. Search paths specified by the ``HINTS`` option. These should be paths
|
||||
computed by system introspection, such as a hint provided by the
|
||||
location of another item already found. Hard-coded guesses should
|
||||
be specified with the ``PATHS`` option.
|
||||
|
||||
4. Search the standard system environment variables. This can be
|
||||
5. Search the standard system environment variables. This can be
|
||||
skipped if ``NO_SYSTEM_ENVIRONMENT_PATH`` is passed. Path entries
|
||||
ending in ``/bin`` or ``/sbin`` are automatically converted to their
|
||||
parent directories::
|
||||
|
||||
PATH
|
||||
|
||||
5. Search paths stored in the CMake :ref:`User Package Registry`.
|
||||
6. Search paths stored in the CMake :ref:`User Package Registry`.
|
||||
This can be skipped if ``NO_CMAKE_PACKAGE_REGISTRY`` is passed or by
|
||||
setting the :variable:`CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY`
|
||||
to ``TRUE``.
|
||||
See the :manual:`cmake-packages(7)` manual for details on the user
|
||||
package registry.
|
||||
|
||||
6. Search cmake variables defined in the Platform files for the
|
||||
7. Search cmake variables defined in the Platform files for the
|
||||
current system. This can be skipped if ``NO_CMAKE_SYSTEM_PATH`` is
|
||||
passed::
|
||||
|
||||
@ -296,14 +303,14 @@ enabled.
|
||||
CMAKE_SYSTEM_FRAMEWORK_PATH
|
||||
CMAKE_SYSTEM_APPBUNDLE_PATH
|
||||
|
||||
7. Search paths stored in the CMake :ref:`System Package Registry`.
|
||||
8. Search paths stored in the CMake :ref:`System Package Registry`.
|
||||
This can be skipped if ``NO_CMAKE_SYSTEM_PACKAGE_REGISTRY`` is passed
|
||||
or by setting the
|
||||
:variable:`CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY` to ``TRUE``.
|
||||
See the :manual:`cmake-packages(7)` manual for details on the system
|
||||
package registry.
|
||||
|
||||
8. Search paths specified by the ``PATHS`` option. These are typically
|
||||
9. Search paths specified by the ``PATHS`` option. These are typically
|
||||
hard-coded guesses.
|
||||
|
||||
.. |FIND_XXX| replace:: find_package
|
||||
|
@ -8,6 +8,9 @@ find_path
|
||||
.. |prefix_XXX_SUBDIR| replace:: ``<prefix>/include``
|
||||
.. |entry_XXX_SUBDIR| replace:: ``<entry>/include``
|
||||
|
||||
.. |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX| replace::
|
||||
``<prefix>/include/<arch>`` if :variable:`CMAKE_LIBRARY_ARCHITECTURE`
|
||||
is set, and |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX_SUBDIR|
|
||||
.. |CMAKE_PREFIX_PATH_XXX| replace::
|
||||
``<prefix>/include/<arch>`` if :variable:`CMAKE_LIBRARY_ARCHITECTURE`
|
||||
is set, and |CMAKE_PREFIX_PATH_XXX_SUBDIR|
|
||||
|
@ -8,6 +8,8 @@ find_program
|
||||
.. |prefix_XXX_SUBDIR| replace:: ``<prefix>/[s]bin``
|
||||
.. |entry_XXX_SUBDIR| replace:: ``<entry>/[s]bin``
|
||||
|
||||
.. |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX| replace::
|
||||
|FIND_PACKAGE_ROOT_PREFIX_PATH_XXX_SUBDIR|
|
||||
.. |CMAKE_PREFIX_PATH_XXX| replace::
|
||||
|CMAKE_PREFIX_PATH_XXX_SUBDIR|
|
||||
.. |CMAKE_XXX_PATH| replace:: :variable:`CMAKE_PROGRAM_PATH`
|
||||
|
8
Help/release/dev/PackageRoot-search-path-group.rst
Normal file
8
Help/release/dev/PackageRoot-search-path-group.rst
Normal file
@ -0,0 +1,8 @@
|
||||
PackageRoot search path group
|
||||
-----------------------------
|
||||
|
||||
* All ``find_`` commands now have a `PACKAGE_ROOT` search path group that is
|
||||
first in the search heuristics. If the ``find_`` command is called from
|
||||
inside a find module, then the CMake and environment variables
|
||||
``<PackageName>_ROOT`` are used as prefixes and are the first set of paths
|
||||
that are searched.
|
@ -3,7 +3,9 @@
|
||||
#include "cmFindBase.h"
|
||||
|
||||
#include "cmConfigure.h"
|
||||
#include <deque>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <map>
|
||||
#include <stddef.h>
|
||||
|
||||
@ -158,6 +160,9 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
|
||||
void cmFindBase::ExpandPaths()
|
||||
{
|
||||
if (!this->NoDefaultPath) {
|
||||
if (!this->NoPackageRootPath) {
|
||||
this->FillPackageRootPath();
|
||||
}
|
||||
if (!this->NoCMakePath) {
|
||||
this->FillCMakeVariablePath();
|
||||
}
|
||||
@ -196,6 +201,23 @@ void cmFindBase::FillCMakeEnvironmentPath()
|
||||
paths.AddSuffixes(this->SearchPathSuffixes);
|
||||
}
|
||||
|
||||
void cmFindBase::FillPackageRootPath()
|
||||
{
|
||||
cmSearchPath& paths = this->LabeledPaths[PathLabel::PackageRoot];
|
||||
|
||||
// Add package specific search prefixes
|
||||
// NOTE: This should be using const_reverse_iterator but HP aCC and
|
||||
// Oracle sunCC both currently have standard library issues
|
||||
// with the reverse iterator APIs.
|
||||
for (std::deque<std::string>::reverse_iterator pkg =
|
||||
this->Makefile->FindPackageModuleStack.rbegin();
|
||||
pkg != this->Makefile->FindPackageModuleStack.rend(); ++pkg) {
|
||||
std::string varName = *pkg + "_ROOT";
|
||||
paths.AddCMakePrefixPath(varName);
|
||||
paths.AddEnvPrefixPath(varName);
|
||||
}
|
||||
}
|
||||
|
||||
void cmFindBase::FillCMakeVariablePath()
|
||||
{
|
||||
cmSearchPath& paths = this->LabeledPaths[PathLabel::CMake];
|
||||
|
@ -50,6 +50,7 @@ protected:
|
||||
|
||||
private:
|
||||
// Add pieces of the search.
|
||||
void FillPackageRootPath();
|
||||
void FillCMakeVariablePath();
|
||||
void FillCMakeEnvironmentPath();
|
||||
void FillUserHintsPath();
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "cmSystemTools.h"
|
||||
|
||||
cmFindCommon::PathGroup cmFindCommon::PathGroup::All("ALL");
|
||||
cmFindCommon::PathLabel cmFindCommon::PathLabel::PackageRoot(
|
||||
"PacakgeName_ROOT");
|
||||
cmFindCommon::PathLabel cmFindCommon::PathLabel::CMake("CMAKE");
|
||||
cmFindCommon::PathLabel cmFindCommon::PathLabel::CMakeEnvironment(
|
||||
"CMAKE_ENVIRONMENT");
|
||||
@ -23,6 +25,7 @@ cmFindCommon::cmFindCommon()
|
||||
{
|
||||
this->FindRootPathMode = RootPathModeBoth;
|
||||
this->NoDefaultPath = false;
|
||||
this->NoPackageRootPath = false;
|
||||
this->NoCMakePath = false;
|
||||
this->NoCMakeEnvironmentPath = false;
|
||||
this->NoSystemEnvironmentPath = false;
|
||||
@ -57,6 +60,7 @@ void cmFindCommon::InitializeSearchPathGroups()
|
||||
|
||||
// All search paths
|
||||
labels = &this->PathGroupLabelMap[PathGroup::All];
|
||||
labels->push_back(PathLabel::PackageRoot);
|
||||
labels->push_back(PathLabel::CMake);
|
||||
labels->push_back(PathLabel::CMakeEnvironment);
|
||||
labels->push_back(PathLabel::Hints);
|
||||
@ -68,6 +72,8 @@ void cmFindCommon::InitializeSearchPathGroups()
|
||||
this->PathGroupOrder.push_back(PathGroup::All);
|
||||
|
||||
// Create the idividual labeld search paths
|
||||
this->LabeledPaths.insert(
|
||||
std::make_pair(PathLabel::PackageRoot, cmSearchPath(this)));
|
||||
this->LabeledPaths.insert(
|
||||
std::make_pair(PathLabel::CMake, cmSearchPath(this)));
|
||||
this->LabeledPaths.insert(
|
||||
@ -271,10 +277,12 @@ bool cmFindCommon::CheckCommonArgument(std::string const& arg)
|
||||
{
|
||||
if (arg == "NO_DEFAULT_PATH") {
|
||||
this->NoDefaultPath = true;
|
||||
} else if (arg == "NO_CMAKE_ENVIRONMENT_PATH") {
|
||||
this->NoCMakeEnvironmentPath = true;
|
||||
} else if (arg == "NO_PACKAGE_ROOT_PATH") {
|
||||
this->NoPackageRootPath = true;
|
||||
} else if (arg == "NO_CMAKE_PATH") {
|
||||
this->NoCMakePath = true;
|
||||
} else if (arg == "NO_CMAKE_ENVIRONMENT_PATH") {
|
||||
this->NoCMakeEnvironmentPath = true;
|
||||
} else if (arg == "NO_SYSTEM_ENVIRONMENT_PATH") {
|
||||
this->NoSystemEnvironmentPath = true;
|
||||
} else if (arg == "NO_CMAKE_SYSTEM_PATH") {
|
||||
|
@ -55,6 +55,7 @@ protected:
|
||||
: cmPathLabel(label)
|
||||
{
|
||||
}
|
||||
static PathLabel PackageRoot;
|
||||
static PathLabel CMake;
|
||||
static PathLabel CMakeEnvironment;
|
||||
static PathLabel Hints;
|
||||
@ -105,6 +106,7 @@ protected:
|
||||
void AddPathSuffix(std::string const& arg);
|
||||
|
||||
bool NoDefaultPath;
|
||||
bool NoPackageRootPath;
|
||||
bool NoCMakePath;
|
||||
bool NoCMakeEnvironmentPath;
|
||||
bool NoSystemEnvironmentPath;
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "cmsys/String.h"
|
||||
#include <algorithm>
|
||||
#include <assert.h>
|
||||
#include <deque>
|
||||
#include <functional>
|
||||
#include <iterator>
|
||||
#include <sstream>
|
||||
@ -585,6 +586,9 @@ void cmFindPackageCommand::SetModuleVariables(const std::string& components)
|
||||
exact += "_FIND_VERSION_EXACT";
|
||||
this->AddFindDefinition(exact, this->VersionExact ? "1" : "0");
|
||||
}
|
||||
|
||||
// Push on to the pacakge stack
|
||||
this->Makefile->FindPackageModuleStack.push_back(this->Name);
|
||||
}
|
||||
|
||||
void cmFindPackageCommand::AddFindDefinition(const std::string& var,
|
||||
@ -1059,6 +1063,9 @@ void cmFindPackageCommand::AppendSuccessInformation()
|
||||
|
||||
// Restore original state of "_FIND_" variables we set.
|
||||
this->RestoreFindDefinitions();
|
||||
|
||||
// Pop the package stack
|
||||
this->Makefile->FindPackageModuleStack.pop_back();
|
||||
}
|
||||
|
||||
void cmFindPackageCommand::ComputePrefixes()
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include "cmConfigure.h"
|
||||
|
||||
#include "cmsys/RegularExpression.hxx"
|
||||
#include <deque>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <stack>
|
||||
@ -786,6 +787,10 @@ public:
|
||||
void RemoveExportBuildFileGeneratorCMP0024(cmExportBuildFileGenerator* gen);
|
||||
void AddExportBuildFileGenerator(cmExportBuildFileGenerator* gen);
|
||||
|
||||
// Maintain a stack of pacakge names to determine the depth of find modules
|
||||
// we are currently being called with
|
||||
std::deque<std::string> FindPackageModuleStack;
|
||||
|
||||
protected:
|
||||
// add link libraries and directories to the target
|
||||
void AddGlobalLinkInformation(cmTarget& target);
|
||||
|
319
Tests/RunCMake/find_package/PackageRoot-stderr.txt
Normal file
319
Tests/RunCMake/find_package/PackageRoot-stderr.txt
Normal file
@ -0,0 +1,319 @@
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_TEST_FILE_FOO :BAR_TEST_FILE_FOO-NOTFOUND
|
||||
BAR_TEST_FILE_BAR :BAR_TEST_FILE_BAR-NOTFOUND
|
||||
BAR_TEST_PATH_FOO :BAR_TEST_PATH_FOO-NOTFOUND
|
||||
BAR_TEST_PATH_BAR :BAR_TEST_PATH_BAR-NOTFOUND
|
||||
BAR_TEST_PROG_FOO :BAR_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_TEST_PROG_BAR :BAR_TEST_PROG_BAR-NOTFOUND
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/foo/cmake_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/foo/cmake_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/foo/env_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/foo/env_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/foo/env_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/foo/cmake_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/foo/cmake_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_ROOT :.*/PackageRoot/bar/cmake_root
|
||||
ENV{Bar_ROOT} :
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_TEST_FILE_FOO :BAR_TEST_FILE_FOO-NOTFOUND
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :BAR_TEST_PATH_FOO-NOTFOUND
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PROG_FOO :BAR_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/cmake_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :.*/PackageRoot/bar/env_root
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_TEST_FILE_FOO :BAR_TEST_FILE_FOO-NOTFOUND
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/env_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :BAR_TEST_PATH_FOO-NOTFOUND
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/env_root/include
|
||||
BAR_TEST_PROG_FOO :BAR_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/env_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_ROOT :.*/PackageRoot/bar/cmake_root
|
||||
ENV{Bar_ROOT} :.*/PackageRoot/bar/env_root
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_TEST_FILE_FOO :BAR_TEST_FILE_FOO-NOTFOUND
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :BAR_TEST_PATH_FOO-NOTFOUND
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PROG_FOO :BAR_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/cmake_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_ROOT :.*/PackageRoot/bar/cmake_root
|
||||
ENV{Bar_ROOT} :
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/cmake_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
Bar_ROOT :.*/PackageRoot/bar/cmake_root
|
||||
ENV{Bar_ROOT} :
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/cmake_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
Bar_ROOT :.*/PackageRoot/bar/cmake_root
|
||||
ENV{Bar_ROOT} :
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/cmake_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :.*/PackageRoot/bar/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/env_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/env_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/env_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :.*/PackageRoot/bar/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/env_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/env_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/env_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :.*/PackageRoot/bar/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/env_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/env_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/env_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_ROOT :.*/PackageRoot/bar/cmake_root
|
||||
ENV{Bar_ROOT} :.*/PackageRoot/bar/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/cmake_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
Bar_ROOT :.*/PackageRoot/bar/cmake_root
|
||||
ENV{Bar_ROOT} :.*/PackageRoot/bar/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/env_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/cmake_root/bin/bar.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
|
||||
Foo_ROOT :.*/PackageRoot/foo/cmake_root
|
||||
ENV{Foo_ROOT} :.*/PackageRoot/foo/env_root
|
||||
Bar_ROOT :.*/PackageRoot/bar/cmake_root
|
||||
ENV{Bar_ROOT} :.*/PackageRoot/bar/env_root
|
||||
FOO_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_FILE_FOO :.*/PackageRoot/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :.*/PackageRoot/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/cmake_root/bin/bar.exe
|
143
Tests/RunCMake/find_package/PackageRoot.cmake
Normal file
143
Tests/RunCMake/find_package/PackageRoot.cmake
Normal file
@ -0,0 +1,143 @@
|
||||
cmake_policy(SET CMP0057 NEW)
|
||||
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_CURRENT_SOURCE_DIR}/PackageRoot)
|
||||
set(PackageRoot_BASE ${CMAKE_CURRENT_SOURCE_DIR}/PackageRoot)
|
||||
|
||||
macro(CleanUpPackageRootTest)
|
||||
unset(Foo_ROOT)
|
||||
unset(ENV{Foo_ROOT})
|
||||
unset(Bar_ROOT)
|
||||
unset(ENV{Bar_ROOT})
|
||||
unset(FOO_TEST_FILE_FOO)
|
||||
unset(FOO_TEST_PATH_FOO)
|
||||
unset(FOO_TEST_PROG_FOO)
|
||||
unset(BAR_TEST_FILE_FOO)
|
||||
unset(BAR_TEST_FILE_BAR)
|
||||
unset(BAR_TEST_PATH_FOO)
|
||||
unset(BAR_TEST_PATH_BAR)
|
||||
unset(BAR_TEST_PROG_FOO)
|
||||
unset(BAR_TEST_PROG_BAR)
|
||||
unset(FOO_TEST_FILE_FOO CACHE)
|
||||
unset(FOO_TEST_PATH_FOO CACHE)
|
||||
unset(FOO_TEST_PROG_FOO CACHE)
|
||||
unset(BAR_TEST_FILE_FOO CACHE)
|
||||
unset(BAR_TEST_FILE_BAR CACHE)
|
||||
unset(BAR_TEST_PATH_FOO CACHE)
|
||||
unset(BAR_TEST_PATH_BAR CACHE)
|
||||
unset(BAR_TEST_PROG_FOO CACHE)
|
||||
unset(BAR_TEST_PROG_BAR CACHE)
|
||||
endmacro()
|
||||
|
||||
macro(RunPackageRootTest)
|
||||
set(orig_foo_cmake_root ${Foo_ROOT})
|
||||
set(orig_foo_env_root $ENV{Foo_ROOT})
|
||||
set(orig_bar_cmake_root ${Bar_ROOT})
|
||||
set(orig_bar_env_root $ENV{Bar_ROOT})
|
||||
|
||||
find_package(Foo)
|
||||
message("Foo_ROOT :${Foo_ROOT}")
|
||||
message("ENV{Foo_ROOT} :$ENV{Foo_ROOT}")
|
||||
message("FOO_TEST_FILE_FOO :${FOO_TEST_FILE_FOO}")
|
||||
message("FOO_TEST_PATH_FOO :${FOO_TEST_PATH_FOO}")
|
||||
message("FOO_TEST_PROG_FOO :${FOO_TEST_PROG_FOO}")
|
||||
CleanUpPackageRootTest()
|
||||
message("")
|
||||
|
||||
set(Foo_ROOT ${orig_foo_cmake_root})
|
||||
set(ENV{Foo_ROOT} ${orig_foo_env_root})
|
||||
set(Bar_ROOT ${orig_bar_cmake_root})
|
||||
set(ENV{Bar_ROOT} ${orig_bar_env_root})
|
||||
|
||||
find_package(Foo COMPONENTS Bar)
|
||||
message("Foo_ROOT :${Foo_ROOT}")
|
||||
message("ENV{Foo_ROOT} :$ENV{Foo_ROOT}")
|
||||
message("Bar_ROOT :${Bar_ROOT}")
|
||||
message("ENV{Bar_ROOT} :$ENV{Bar_ROOT}")
|
||||
message("FOO_TEST_FILE_FOO :${FOO_TEST_FILE_FOO}")
|
||||
message("FOO_TEST_PATH_FOO :${FOO_TEST_PATH_FOO}")
|
||||
message("FOO_TEST_PROG_FOO :${FOO_TEST_PROG_FOO}")
|
||||
message("BAR_TEST_FILE_FOO :${BAR_TEST_FILE_FOO}")
|
||||
message("BAR_TEST_FILE_BAR :${BAR_TEST_FILE_BAR}")
|
||||
message("BAR_TEST_PATH_FOO :${BAR_TEST_PATH_FOO}")
|
||||
message("BAR_TEST_PATH_BAR :${BAR_TEST_PATH_BAR}")
|
||||
message("BAR_TEST_PROG_FOO :${BAR_TEST_PROG_FOO}")
|
||||
message("BAR_TEST_PROG_BAR :${BAR_TEST_PROG_BAR}")
|
||||
CleanUpPackageRootTest()
|
||||
message("")
|
||||
|
||||
unset(orig_foo_cmake_root)
|
||||
unset(orig_foo_env_root)
|
||||
unset(orig_bar_cmake_root)
|
||||
unset(orig_bar_env_root)
|
||||
endmacro()
|
||||
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/env_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/env_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
##
|
||||
|
||||
set(Bar_ROOT ${PackageRoot_BASE}/bar/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(ENV{Bar_ROOT} ${PackageRoot_BASE}/bar/env_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Bar_ROOT ${PackageRoot_BASE}/bar/cmake_root)
|
||||
set(ENV{Bar_ROOT} ${PackageRoot_BASE}/bar/env_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
##
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(Bar_ROOT ${PackageRoot_BASE}/bar/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/env_root)
|
||||
set(Bar_ROOT ${PackageRoot_BASE}/bar/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/env_root)
|
||||
set(Bar_ROOT ${PackageRoot_BASE}/bar/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
##
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Bar_ROOT} ${PackageRoot_BASE}/bar/env_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/env_root)
|
||||
set(ENV{Bar_ROOT} ${PackageRoot_BASE}/bar/env_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/env_root)
|
||||
set(ENV{Bar_ROOT} ${PackageRoot_BASE}/bar/env_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
##
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(Bar_ROOT ${PackageRoot_BASE}/bar/cmake_root)
|
||||
set(ENV{Bar_ROOT} ${PackageRoot_BASE}/bar/env_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/env_root)
|
||||
set(Bar_ROOT ${PackageRoot_BASE}/bar/cmake_root)
|
||||
set(ENV{Bar_ROOT} ${PackageRoot_BASE}/bar/env_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/env_root)
|
||||
set(Bar_ROOT ${PackageRoot_BASE}/bar/cmake_root)
|
||||
set(ENV{Bar_ROOT} ${PackageRoot_BASE}/bar/env_root)
|
||||
RunPackageRootTest()
|
6
Tests/RunCMake/find_package/PackageRoot/FindBar.cmake
Normal file
6
Tests/RunCMake/find_package/PackageRoot/FindBar.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
find_file(BAR_TEST_FILE_FOO foo.h)
|
||||
find_file(BAR_TEST_FILE_BAR bar.h)
|
||||
find_path(BAR_TEST_PATH_FOO foo.h)
|
||||
find_path(BAR_TEST_PATH_BAR bar.h)
|
||||
find_program(BAR_TEST_PROG_FOO foo.exe)
|
||||
find_program(BAR_TEST_PROG_BAR bar.exe)
|
7
Tests/RunCMake/find_package/PackageRoot/FindFoo.cmake
Normal file
7
Tests/RunCMake/find_package/PackageRoot/FindFoo.cmake
Normal file
@ -0,0 +1,7 @@
|
||||
find_file(FOO_TEST_FILE_FOO foo.h)
|
||||
find_path(FOO_TEST_PATH_FOO foo.h)
|
||||
find_program(FOO_TEST_PROG_FOO foo.exe)
|
||||
|
||||
if ("Bar" IN_LIST Foo_FIND_COMPONENTS)
|
||||
find_package(Bar)
|
||||
endif ()
|
0
Tests/RunCMake/find_package/PackageRoot/bar/cmake_root/bin/bar.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/bar/cmake_root/bin/bar.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/bar/env_root/bin/bar.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/bar/env_root/bin/bar.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/foo/cmake_root/bin/bar.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/foo/cmake_root/bin/bar.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/foo/cmake_root/bin/foo.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/foo/cmake_root/bin/foo.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/foo/env_root/bin/bar.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/foo/env_root/bin/bar.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/foo/env_root/bin/foo.exe
Executable file
0
Tests/RunCMake/find_package/PackageRoot/foo/env_root/bin/foo.exe
Executable file
@ -13,6 +13,7 @@ run_cmake(MissingConfigOneName)
|
||||
run_cmake(MissingConfigRequired)
|
||||
run_cmake(MissingConfigVersion)
|
||||
run_cmake(MixedModeOptions)
|
||||
run_cmake(PackageRoot)
|
||||
run_cmake(PolicyPush)
|
||||
run_cmake(PolicyPop)
|
||||
run_cmake(SetFoundFALSE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user