parent
18330eafcd
commit
86a21c1898
@ -1,5 +1,5 @@
|
||||
# CMake version number components.
|
||||
set(CMake_VERSION_MAJOR 3)
|
||||
set(CMake_VERSION_MINOR 9)
|
||||
set(CMake_VERSION_PATCH 0)
|
||||
set(CMake_VERSION_PATCH 1)
|
||||
#set(CMake_VERSION_RC 0)
|
||||
|
@ -1,383 +1,43 @@
|
||||
----------
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
|
||||
find_package\(Foo\)
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_FILE_ZOT :FOO_TEST_FILE_ZOT-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_ZOT :FOO_TEST_PATH_ZOT-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_FILE_ZOT :BAR_TEST_FILE_ZOT-NOTFOUND
|
||||
BAR_TEST_PATH_FOO :BAR_TEST_PATH_FOO-NOTFOUND
|
||||
BAR_TEST_PATH_BAR :BAR_TEST_PATH_BAR-NOTFOUND
|
||||
BAR_TEST_PATH_ZOT :BAR_TEST_PATH_ZOT-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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/foo/env_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
|
||||
Foo_ROOT :
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :BAR_TEST_PATH_FOO-NOTFOUND
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
find_package\(Foo\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
|
||||
----------
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :BAR_TEST_PATH_FOO-NOTFOUND
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/env_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :BAR_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/env_root/bin/bar.exe
|
||||
ENV{Foo_ROOT} :<base>/foo/env_root
|
||||
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :BAR_TEST_PATH_FOO-NOTFOUND
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/env_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/env_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/env_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/env_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/env_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/cmake_root/bin/bar.exe
|
||||
find_package\(Foo\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/env_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/env_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/env_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/env_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/env_root/bin/foo.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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/env_root
|
||||
|
||||
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_FILE_ZOT :.*/PackageRoot/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :.*/PackageRoot/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :.*/PackageRoot/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :.*/PackageRoot/foo/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :.*/PackageRoot/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :.*/PackageRoot/bar/cmake_root/bin/bar.exe
|
||||
find_package\(Foo\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
|
@ -0,0 +1,9 @@
|
||||
set(BAR_CMAKE_FILE ${CMAKE_CURRENT_LIST_FILE} CACHE FILEPATH "")
|
||||
find_file(BAR_TEST_FILE_FOO foo.h)
|
||||
find_file(BAR_TEST_FILE_BAR bar.h)
|
||||
find_file(BAR_TEST_FILE_ZOT zot.h PATH_SUFFIXES zot)
|
||||
find_path(BAR_TEST_PATH_FOO foo.h)
|
||||
find_path(BAR_TEST_PATH_BAR bar.h)
|
||||
find_path(BAR_TEST_PATH_ZOT zot.h PATH_SUFFIXES zot)
|
||||
find_program(BAR_TEST_PROG_FOO foo.exe)
|
||||
find_program(BAR_TEST_PROG_BAR bar.exe)
|
@ -0,0 +1,9 @@
|
||||
set(BAR_CMAKE_FILE ${CMAKE_CURRENT_LIST_FILE} CACHE FILEPATH "")
|
||||
find_file(BAR_TEST_FILE_FOO foo.h)
|
||||
find_file(BAR_TEST_FILE_BAR bar.h)
|
||||
find_file(BAR_TEST_FILE_ZOT zot.h PATH_SUFFIXES zot)
|
||||
find_path(BAR_TEST_PATH_FOO foo.h)
|
||||
find_path(BAR_TEST_PATH_BAR bar.h)
|
||||
find_path(BAR_TEST_PATH_ZOT zot.h PATH_SUFFIXES zot)
|
||||
find_program(BAR_TEST_PROG_FOO foo.exe)
|
||||
find_program(BAR_TEST_PROG_BAR bar.exe)
|
@ -0,0 +1,9 @@
|
||||
set(BAR_CMAKE_FILE ${CMAKE_CURRENT_LIST_FILE} CACHE FILEPATH "")
|
||||
find_file(BAR_TEST_FILE_FOO foo.h)
|
||||
find_file(BAR_TEST_FILE_BAR bar.h)
|
||||
find_file(BAR_TEST_FILE_ZOT zot.h PATH_SUFFIXES zot)
|
||||
find_path(BAR_TEST_PATH_FOO foo.h)
|
||||
find_path(BAR_TEST_PATH_BAR bar.h)
|
||||
find_path(BAR_TEST_PATH_ZOT zot.h PATH_SUFFIXES zot)
|
||||
find_program(BAR_TEST_PROG_FOO foo.exe)
|
||||
find_program(BAR_TEST_PROG_BAR bar.exe)
|
@ -0,0 +1,298 @@
|
||||
----------
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_FILE_ZOT :FOO_TEST_FILE_ZOT-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_ZOT :FOO_TEST_PATH_ZOT-NOTFOUND
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_CMAKE_FILE :
|
||||
BAR_TEST_FILE_FOO :
|
||||
BAR_TEST_FILE_BAR :
|
||||
BAR_TEST_FILE_ZOT :
|
||||
BAR_TEST_PATH_FOO :
|
||||
BAR_TEST_PATH_BAR :
|
||||
BAR_TEST_PATH_ZOT :
|
||||
BAR_TEST_PROG_FOO :
|
||||
BAR_TEST_PROG_BAR :
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/foo/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/foo/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/env_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/env_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/env_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/env_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/env_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/foo/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/foo/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/env_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/env_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/env_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/env_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/env_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/foo/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/foo/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/env_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/env_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/env_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/env_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/env_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarConfig\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/foo/cmake_root/cmake/BarConfig.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
@ -0,0 +1,141 @@
|
||||
set(__UNDOCUMENTED_CMAKE_FIND_PACKAGE_ROOT 1)
|
||||
cmake_policy(SET CMP0057 NEW)
|
||||
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_CURRENT_SOURCE_DIR}/PackageRoot)
|
||||
set(PackageRoot_BASE ${CMAKE_CURRENT_SOURCE_DIR}/PackageRoot)
|
||||
|
||||
function(PrintPath label path)
|
||||
string(REPLACE "${PackageRoot_BASE}" "<base>" out "${path}")
|
||||
message("${label}${out}")
|
||||
endfunction()
|
||||
|
||||
macro(CleanUpPackageRootTest)
|
||||
unset(Foo_ROOT)
|
||||
unset(ENV{Foo_ROOT})
|
||||
unset(Bar_DIR)
|
||||
unset(BAR_CMAKE_FILE)
|
||||
unset(Bar_ROOT)
|
||||
unset(ENV{Bar_ROOT})
|
||||
unset(FOO_TEST_FILE_FOO)
|
||||
unset(FOO_TEST_FILE_ZOT)
|
||||
unset(FOO_TEST_PATH_FOO)
|
||||
unset(FOO_TEST_PATH_ZOT)
|
||||
unset(FOO_TEST_PROG_FOO)
|
||||
unset(BAR_TEST_FILE_FOO)
|
||||
unset(BAR_TEST_FILE_BAR)
|
||||
unset(BAR_TEST_FILE_ZOT)
|
||||
unset(BAR_TEST_PATH_FOO)
|
||||
unset(BAR_TEST_PATH_BAR)
|
||||
unset(BAR_TEST_PATH_ZOT)
|
||||
unset(BAR_TEST_PROG_FOO)
|
||||
unset(BAR_TEST_PROG_BAR)
|
||||
unset(Bar_DIR CACHE)
|
||||
unset(BAR_CMAKE_FILE CACHE)
|
||||
unset(FOO_TEST_FILE_FOO CACHE)
|
||||
unset(FOO_TEST_FILE_ZOT CACHE)
|
||||
unset(FOO_TEST_PATH_FOO CACHE)
|
||||
unset(FOO_TEST_PATH_ZOT CACHE)
|
||||
unset(FOO_TEST_PROG_FOO CACHE)
|
||||
unset(BAR_TEST_FILE_FOO CACHE)
|
||||
unset(BAR_TEST_FILE_BAR CACHE)
|
||||
unset(BAR_TEST_FILE_ZOT CACHE)
|
||||
unset(BAR_TEST_PATH_FOO CACHE)
|
||||
unset(BAR_TEST_PATH_BAR CACHE)
|
||||
unset(BAR_TEST_PATH_ZOT CACHE)
|
||||
unset(BAR_TEST_PROG_FOO CACHE)
|
||||
unset(BAR_TEST_PROG_BAR CACHE)
|
||||
endmacro()
|
||||
|
||||
macro(RunPackageRootTest)
|
||||
message("----------")
|
||||
PrintPath("Foo_ROOT :" "${Foo_ROOT}")
|
||||
PrintPath("ENV{Foo_ROOT} :" "$ENV{Foo_ROOT}")
|
||||
PrintPath("Bar_DIR :" "${Bar_DIR}")
|
||||
PrintPath("Bar_ROOT :" "${Bar_ROOT}")
|
||||
PrintPath("ENV{Bar_ROOT} :" "$ENV{Bar_ROOT}")
|
||||
message("")
|
||||
|
||||
find_package(Foo COMPONENTS BarConfig)
|
||||
message("find_package(Foo COMPONENTS BarConfig)")
|
||||
PrintPath("FOO_TEST_FILE_FOO :" "${FOO_TEST_FILE_FOO}")
|
||||
PrintPath("FOO_TEST_FILE_ZOT :" "${FOO_TEST_FILE_ZOT}")
|
||||
PrintPath("FOO_TEST_PATH_FOO :" "${FOO_TEST_PATH_FOO}")
|
||||
PrintPath("FOO_TEST_PATH_ZOT :" "${FOO_TEST_PATH_ZOT}")
|
||||
PrintPath("FOO_TEST_PROG_FOO :" "${FOO_TEST_PROG_FOO}")
|
||||
PrintPath("BAR_CMAKE_FILE :" "${BAR_CMAKE_FILE}")
|
||||
PrintPath("BAR_TEST_FILE_FOO :" "${BAR_TEST_FILE_FOO}")
|
||||
PrintPath("BAR_TEST_FILE_BAR :" "${BAR_TEST_FILE_BAR}")
|
||||
PrintPath("BAR_TEST_FILE_ZOT :" "${BAR_TEST_FILE_ZOT}")
|
||||
PrintPath("BAR_TEST_PATH_FOO :" "${BAR_TEST_PATH_FOO}")
|
||||
PrintPath("BAR_TEST_PATH_BAR :" "${BAR_TEST_PATH_BAR}")
|
||||
PrintPath("BAR_TEST_PATH_ZOT :" "${BAR_TEST_PATH_ZOT}")
|
||||
PrintPath("BAR_TEST_PROG_FOO :" "${BAR_TEST_PROG_FOO}")
|
||||
PrintPath("BAR_TEST_PROG_BAR :" "${BAR_TEST_PROG_BAR}")
|
||||
CleanUpPackageRootTest()
|
||||
message("")
|
||||
endmacro()
|
||||
|
||||
#
|
||||
|
||||
RunPackageRootTest()
|
||||
|
||||
#
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_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(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(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/cmake_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/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/cmake_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/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/cmake_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/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/cmake_root)
|
||||
set(Bar_ROOT ${PackageRoot_BASE}/bar/cmake_root)
|
||||
set(ENV{Bar_ROOT} ${PackageRoot_BASE}/bar/env_root)
|
||||
RunPackageRootTest()
|
@ -0,0 +1,298 @@
|
||||
----------
|
||||
Foo_ROOT :
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :FOO_TEST_FILE_FOO-NOTFOUND
|
||||
FOO_TEST_FILE_ZOT :FOO_TEST_FILE_ZOT-NOTFOUND
|
||||
FOO_TEST_PATH_FOO :FOO_TEST_PATH_FOO-NOTFOUND
|
||||
FOO_TEST_PATH_ZOT :FOO_TEST_PATH_ZOT-NOTFOUND
|
||||
FOO_TEST_PROG_FOO :FOO_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :BAR_TEST_FILE_FOO-NOTFOUND
|
||||
BAR_TEST_FILE_BAR :BAR_TEST_FILE_BAR-NOTFOUND
|
||||
BAR_TEST_FILE_ZOT :BAR_TEST_FILE_ZOT-NOTFOUND
|
||||
BAR_TEST_PATH_FOO :BAR_TEST_PATH_FOO-NOTFOUND
|
||||
BAR_TEST_PATH_BAR :BAR_TEST_PATH_BAR-NOTFOUND
|
||||
BAR_TEST_PATH_ZOT :BAR_TEST_PATH_ZOT-NOTFOUND
|
||||
BAR_TEST_PROG_FOO :BAR_TEST_PROG_FOO-NOTFOUND
|
||||
BAR_TEST_PROG_BAR :BAR_TEST_PROG_BAR-NOTFOUND
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/foo/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/foo/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/env_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/env_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/env_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/env_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/env_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/foo/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/foo/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/env_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/env_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/env_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/env_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/env_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/foo/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/foo/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/env_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/env_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/env_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/env_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/env_root/bin/bar.exe
|
||||
|
||||
----------
|
||||
Foo_ROOT :<base>/foo/cmake_root
|
||||
ENV{Foo_ROOT} :<base>/foo/cmake_root
|
||||
Bar_DIR :
|
||||
Bar_ROOT :<base>/bar/cmake_root
|
||||
ENV{Bar_ROOT} :<base>/bar/env_root
|
||||
|
||||
find_package\(Foo COMPONENTS BarModule\)
|
||||
FOO_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
FOO_TEST_FILE_ZOT :<base>/foo/cmake_root/include/zot/zot.h
|
||||
FOO_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
FOO_TEST_PATH_ZOT :<base>/foo/cmake_root/include/zot
|
||||
FOO_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_CMAKE_FILE :<base>/FindBar.cmake
|
||||
BAR_TEST_FILE_FOO :<base>/foo/cmake_root/include/foo.h
|
||||
BAR_TEST_FILE_BAR :<base>/bar/cmake_root/include/bar.h
|
||||
BAR_TEST_FILE_ZOT :<base>/bar/cmake_root/include/zot/zot.h
|
||||
BAR_TEST_PATH_FOO :<base>/foo/cmake_root/include
|
||||
BAR_TEST_PATH_BAR :<base>/bar/cmake_root/include
|
||||
BAR_TEST_PATH_ZOT :<base>/bar/cmake_root/include/zot
|
||||
BAR_TEST_PROG_FOO :<base>/foo/cmake_root/bin/foo.exe
|
||||
BAR_TEST_PROG_BAR :<base>/bar/cmake_root/bin/bar.exe
|
@ -0,0 +1,141 @@
|
||||
set(__UNDOCUMENTED_CMAKE_FIND_PACKAGE_ROOT 1)
|
||||
cmake_policy(SET CMP0057 NEW)
|
||||
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_CURRENT_SOURCE_DIR}/PackageRoot)
|
||||
set(PackageRoot_BASE ${CMAKE_CURRENT_SOURCE_DIR}/PackageRoot)
|
||||
|
||||
function(PrintPath label path)
|
||||
string(REPLACE "${PackageRoot_BASE}" "<base>" out "${path}")
|
||||
message("${label}${out}")
|
||||
endfunction()
|
||||
|
||||
macro(CleanUpPackageRootTest)
|
||||
unset(Foo_ROOT)
|
||||
unset(ENV{Foo_ROOT})
|
||||
unset(Bar_DIR)
|
||||
unset(BAR_CMAKE_FILE)
|
||||
unset(Bar_ROOT)
|
||||
unset(ENV{Bar_ROOT})
|
||||
unset(FOO_TEST_FILE_FOO)
|
||||
unset(FOO_TEST_FILE_ZOT)
|
||||
unset(FOO_TEST_PATH_FOO)
|
||||
unset(FOO_TEST_PATH_ZOT)
|
||||
unset(FOO_TEST_PROG_FOO)
|
||||
unset(BAR_TEST_FILE_FOO)
|
||||
unset(BAR_TEST_FILE_BAR)
|
||||
unset(BAR_TEST_FILE_ZOT)
|
||||
unset(BAR_TEST_PATH_FOO)
|
||||
unset(BAR_TEST_PATH_BAR)
|
||||
unset(BAR_TEST_PATH_ZOT)
|
||||
unset(BAR_TEST_PROG_FOO)
|
||||
unset(BAR_TEST_PROG_BAR)
|
||||
unset(Bar_DIR CACHE)
|
||||
unset(BAR_CMAKE_FILE CACHE)
|
||||
unset(FOO_TEST_FILE_FOO CACHE)
|
||||
unset(FOO_TEST_FILE_ZOT CACHE)
|
||||
unset(FOO_TEST_PATH_FOO CACHE)
|
||||
unset(FOO_TEST_PATH_ZOT CACHE)
|
||||
unset(FOO_TEST_PROG_FOO CACHE)
|
||||
unset(BAR_TEST_FILE_FOO CACHE)
|
||||
unset(BAR_TEST_FILE_BAR CACHE)
|
||||
unset(BAR_TEST_FILE_ZOT CACHE)
|
||||
unset(BAR_TEST_PATH_FOO CACHE)
|
||||
unset(BAR_TEST_PATH_BAR CACHE)
|
||||
unset(BAR_TEST_PATH_ZOT CACHE)
|
||||
unset(BAR_TEST_PROG_FOO CACHE)
|
||||
unset(BAR_TEST_PROG_BAR CACHE)
|
||||
endmacro()
|
||||
|
||||
macro(RunPackageRootTest)
|
||||
message("----------")
|
||||
PrintPath("Foo_ROOT :" "${Foo_ROOT}")
|
||||
PrintPath("ENV{Foo_ROOT} :" "$ENV{Foo_ROOT}")
|
||||
PrintPath("Bar_DIR :" "${Bar_DIR}")
|
||||
PrintPath("Bar_ROOT :" "${Bar_ROOT}")
|
||||
PrintPath("ENV{Bar_ROOT} :" "$ENV{Bar_ROOT}")
|
||||
message("")
|
||||
|
||||
find_package(Foo COMPONENTS BarModule)
|
||||
message("find_package(Foo COMPONENTS BarModule)")
|
||||
PrintPath("FOO_TEST_FILE_FOO :" "${FOO_TEST_FILE_FOO}")
|
||||
PrintPath("FOO_TEST_FILE_ZOT :" "${FOO_TEST_FILE_ZOT}")
|
||||
PrintPath("FOO_TEST_PATH_FOO :" "${FOO_TEST_PATH_FOO}")
|
||||
PrintPath("FOO_TEST_PATH_ZOT :" "${FOO_TEST_PATH_ZOT}")
|
||||
PrintPath("FOO_TEST_PROG_FOO :" "${FOO_TEST_PROG_FOO}")
|
||||
PrintPath("BAR_CMAKE_FILE :" "${BAR_CMAKE_FILE}")
|
||||
PrintPath("BAR_TEST_FILE_FOO :" "${BAR_TEST_FILE_FOO}")
|
||||
PrintPath("BAR_TEST_FILE_BAR :" "${BAR_TEST_FILE_BAR}")
|
||||
PrintPath("BAR_TEST_FILE_ZOT :" "${BAR_TEST_FILE_ZOT}")
|
||||
PrintPath("BAR_TEST_PATH_FOO :" "${BAR_TEST_PATH_FOO}")
|
||||
PrintPath("BAR_TEST_PATH_BAR :" "${BAR_TEST_PATH_BAR}")
|
||||
PrintPath("BAR_TEST_PATH_ZOT :" "${BAR_TEST_PATH_ZOT}")
|
||||
PrintPath("BAR_TEST_PROG_FOO :" "${BAR_TEST_PROG_FOO}")
|
||||
PrintPath("BAR_TEST_PROG_BAR :" "${BAR_TEST_PROG_BAR}")
|
||||
CleanUpPackageRootTest()
|
||||
message("")
|
||||
endmacro()
|
||||
|
||||
#
|
||||
|
||||
RunPackageRootTest()
|
||||
|
||||
#
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_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(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(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/cmake_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/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/cmake_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/cmake_root)
|
||||
RunPackageRootTest()
|
||||
|
||||
set(Foo_ROOT ${PackageRoot_BASE}/foo/cmake_root)
|
||||
set(ENV{Foo_ROOT} ${PackageRoot_BASE}/foo/cmake_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/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/cmake_root)
|
||||
set(Bar_ROOT ${PackageRoot_BASE}/bar/cmake_root)
|
||||
set(ENV{Bar_ROOT} ${PackageRoot_BASE}/bar/env_root)
|
||||
RunPackageRootTest()
|
@ -1,139 +0,0 @@
|
||||
|
||||
Expat, Release 2.2.1
|
||||
|
||||
This is Expat, a C library for parsing XML, written by James Clark.
|
||||
Expat is a stream-oriented XML parser. This means that you register
|
||||
handlers with the parser before starting the parse. These handlers
|
||||
are called when the parser discovers the associated structures in the
|
||||
document being parsed. A start tag is an example of the kind of
|
||||
structures for which you may register handlers.
|
||||
|
||||
Windows users should use the expat_win32bin package, which includes
|
||||
both precompiled libraries and executables, and source code for
|
||||
developers.
|
||||
|
||||
Expat is free software. You may copy, distribute, and modify it under
|
||||
the terms of the License contained in the file COPYING distributed
|
||||
with this package. This license is the same as the MIT/X Consortium
|
||||
license.
|
||||
|
||||
Versions of Expat that have an odd minor version (the middle number in
|
||||
the release above), are development releases and should be considered
|
||||
as beta software. Releases with even minor version numbers are
|
||||
intended to be production grade software.
|
||||
|
||||
If you are building Expat from a check-out from the CVS repository,
|
||||
you need to run a script that generates the configure script using the
|
||||
GNU autoconf and libtool tools. To do this, you need to have
|
||||
autoconf 2.58 or newer. Run the script like this:
|
||||
|
||||
./buildconf.sh
|
||||
|
||||
Once this has been done, follow the same instructions as for building
|
||||
from a source distribution.
|
||||
|
||||
To build Expat from a source distribution, you first run the
|
||||
configuration shell script in the top level distribution directory:
|
||||
|
||||
./configure
|
||||
|
||||
There are many options which you may provide to configure (which you
|
||||
can discover by running configure with the --help option). But the
|
||||
one of most interest is the one that sets the installation directory.
|
||||
By default, the configure script will set things up to install
|
||||
libexpat into /usr/local/lib, expat.h into /usr/local/include, and
|
||||
xmlwf into /usr/local/bin. If, for example, you'd prefer to install
|
||||
into /home/me/mystuff/lib, /home/me/mystuff/include, and
|
||||
/home/me/mystuff/bin, you can tell configure about that with:
|
||||
|
||||
./configure --prefix=/home/me/mystuff
|
||||
|
||||
Another interesting option is to enable 64-bit integer support for
|
||||
line and column numbers and the over-all byte index:
|
||||
|
||||
./configure CPPFLAGS=-DXML_LARGE_SIZE
|
||||
|
||||
However, such a modification would be a breaking change to the ABI
|
||||
and is therefore not recommended for general use - e.g. as part of
|
||||
a Linux distribution - but rather for builds with special requirements.
|
||||
|
||||
After running the configure script, the "make" command will build
|
||||
things and "make install" will install things into their proper
|
||||
location. Have a look at the "Makefile" to learn about additional
|
||||
"make" options. Note that you need to have write permission into
|
||||
the directories into which things will be installed.
|
||||
|
||||
If you are interested in building Expat to provide document
|
||||
information in UTF-16 encoding rather than the default UTF-8, follow
|
||||
these instructions (after having run "make distclean"):
|
||||
|
||||
1. For UTF-16 output as unsigned short (and version/error
|
||||
strings as char), run:
|
||||
|
||||
./configure CPPFLAGS=-DXML_UNICODE
|
||||
|
||||
For UTF-16 output as wchar_t (incl. version/error strings),
|
||||
run:
|
||||
|
||||
./configure CFLAGS="-g -O2 -fshort-wchar" \
|
||||
CPPFLAGS=-DXML_UNICODE_WCHAR_T
|
||||
|
||||
2. Edit the MakeFile, changing:
|
||||
|
||||
LIBRARY = libexpat.la
|
||||
|
||||
to:
|
||||
|
||||
LIBRARY = libexpatw.la
|
||||
|
||||
(Note the additional "w" in the library name.)
|
||||
|
||||
3. Run "make buildlib" (which builds the library only).
|
||||
Or, to save step 2, run "make buildlib LIBRARY=libexpatw.la".
|
||||
|
||||
4. Run "make installlib" (which installs the library only).
|
||||
Or, if step 2 was omitted, run "make installlib LIBRARY=libexpatw.la".
|
||||
|
||||
Using DESTDIR or INSTALL_ROOT is enabled, with INSTALL_ROOT being the default
|
||||
value for DESTDIR, and the rest of the make file using only DESTDIR.
|
||||
It works as follows:
|
||||
$ make install DESTDIR=/path/to/image
|
||||
overrides the in-makefile set DESTDIR, while both
|
||||
$ INSTALL_ROOT=/path/to/image make install
|
||||
$ make install INSTALL_ROOT=/path/to/image
|
||||
use DESTDIR=$(INSTALL_ROOT), even if DESTDIR eventually is defined in the
|
||||
environment, because variable-setting priority is
|
||||
1) commandline
|
||||
2) in-makefile
|
||||
3) environment
|
||||
|
||||
Note: This only applies to the Expat library itself, building UTF-16 versions
|
||||
of xmlwf and the tests is currently not supported.
|
||||
|
||||
Note for Solaris users: The "ar" command is usually located in
|
||||
"/usr/ccs/bin", which is not in the default PATH. You will need to
|
||||
add this to your path for the "make" command, and probably also switch
|
||||
to GNU make (the "make" found in /usr/ccs/bin does not seem to work
|
||||
properly -- apparently it does not understand .PHONY directives). If
|
||||
you're using ksh or bash, use this command to build:
|
||||
|
||||
PATH=/usr/ccs/bin:$PATH make
|
||||
|
||||
When using Expat with a project using autoconf for configuration, you
|
||||
can use the probing macro in conftools/expat.m4 to determine how to
|
||||
include Expat. See the comments at the top of that file for more
|
||||
information.
|
||||
|
||||
A reference manual is available in the file doc/reference.html in this
|
||||
distribution.
|
||||
|
||||
The homepage for this project is http://www.libexpat.org/. There
|
||||
are links there to connect you to the bug reports page. If you need
|
||||
to report a bug when you don't have access to a browser, you may also
|
||||
send a bug report by email to expat-bugs@mail.libexpat.org.
|
||||
|
||||
Discussion related to the direction of future expat development takes
|
||||
place on expat-discuss@mail.libexpat.org. Archives of this list and
|
||||
other Expat-related lists may be found at:
|
||||
|
||||
http://mail.libexpat.org/mailman/listinfo/
|
@ -0,0 +1,126 @@
|
||||
# Expat, Release 2.2.3
|
||||
|
||||
This is Expat, a C library for parsing XML, started by
|
||||
[James Clark](https://en.wikipedia.org/wiki/James_Clark_(programmer)) in 1997.
|
||||
Expat is a stream-oriented XML parser. This means that you register
|
||||
handlers with the parser before starting the parse. These handlers
|
||||
are called when the parser discovers the associated structures in the
|
||||
document being parsed. A start tag is an example of the kind of
|
||||
structures for which you may register handlers.
|
||||
|
||||
Windows users should use the
|
||||
[`expat_win32` package](https://sourceforge.net/projects/expat/files/expat_win32/),
|
||||
which includes both precompiled libraries and executables, and source code for
|
||||
developers.
|
||||
|
||||
Expat is [free software](https://www.gnu.org/philosophy/free-sw.en.html).
|
||||
You may copy, distribute, and modify it under the terms of the License
|
||||
contained in the file
|
||||
[`COPYING`](https://github.com/libexpat/libexpat/blob/master/expat/COPYING)
|
||||
distributed with this package.
|
||||
This license is the same as the MIT/X Consortium license.
|
||||
|
||||
If you are building Expat from a check-out from the
|
||||
[Git repository](https://github.com/libexpat/libexpat/),
|
||||
you need to run a script that generates the configure script using the
|
||||
GNU autoconf and libtool tools. To do this, you need to have
|
||||
autoconf 2.58 or newer. Run the script like this:
|
||||
|
||||
```console
|
||||
./buildconf.sh
|
||||
```
|
||||
|
||||
Once this has been done, follow the same instructions as for building
|
||||
from a source distribution.
|
||||
|
||||
To build Expat from a source distribution, you first run the
|
||||
configuration shell script in the top level distribution directory:
|
||||
|
||||
```console
|
||||
./configure
|
||||
```
|
||||
|
||||
There are many options which you may provide to configure (which you
|
||||
can discover by running configure with the `--help` option). But the
|
||||
one of most interest is the one that sets the installation directory.
|
||||
By default, the configure script will set things up to install
|
||||
libexpat into `/usr/local/lib`, `expat.h` into `/usr/local/include`, and
|
||||
`xmlwf` into `/usr/local/bin`. If, for example, you'd prefer to install
|
||||
into `/home/me/mystuff/lib`, `/home/me/mystuff/include`, and
|
||||
`/home/me/mystuff/bin`, you can tell `configure` about that with:
|
||||
|
||||
```console
|
||||
./configure --prefix=/home/me/mystuff
|
||||
```
|
||||
|
||||
Another interesting option is to enable 64-bit integer support for
|
||||
line and column numbers and the over-all byte index:
|
||||
|
||||
```console
|
||||
./configure CPPFLAGS=-DXML_LARGE_SIZE
|
||||
```
|
||||
|
||||
However, such a modification would be a breaking change to the ABI
|
||||
and is therefore not recommended for general use — e.g. as part of
|
||||
a Linux distribution — but rather for builds with special requirements.
|
||||
|
||||
After running the configure script, the `make` command will build
|
||||
things and `make install` will install things into their proper
|
||||
location. Have a look at the `Makefile` to learn about additional
|
||||
`make` options. Note that you need to have write permission into
|
||||
the directories into which things will be installed.
|
||||
|
||||
If you are interested in building Expat to provide document
|
||||
information in UTF-16 encoding rather than the default UTF-8, follow
|
||||
these instructions (after having run `make distclean`):
|
||||
|
||||
1. For UTF-16 output as unsigned short (and version/error strings as char),
|
||||
run:<br/>
|
||||
`./configure CPPFLAGS=-DXML_UNICODE`<br/>
|
||||
For UTF-16 output as `wchar_t` (incl. version/error strings), run:<br/>
|
||||
`./configure CFLAGS="-g -O2 -fshort-wchar" CPPFLAGS=-DXML_UNICODE_WCHAR_T`
|
||||
<br/>Note: The latter requires libc compiled with `-fshort-wchar`, as well.
|
||||
|
||||
1. Edit `Makefile`, changing:<br/>
|
||||
`LIBRARY = libexpat.la`<br/>
|
||||
to:<br/>
|
||||
`LIBRARY = libexpatw.la`<br/>
|
||||
(Note the additional "w" in the library name.)
|
||||
|
||||
1. Run `make buildlib` (which builds the library only).
|
||||
Or, to save step 2, run `make buildlib LIBRARY=libexpatw.la`.
|
||||
|
||||
1. Run `make installlib` (which installs the library only).
|
||||
Or, if step 2 was omitted, run `make installlib LIBRARY=libexpatw.la`.
|
||||
|
||||
Using `DESTDIR` or `INSTALL_ROOT` is enabled, with `INSTALL_ROOT` being the
|
||||
default value for `DESTDIR`, and the rest of the make file using only
|
||||
`DESTDIR`. It works as follows:
|
||||
|
||||
```console
|
||||
make install DESTDIR=/path/to/image
|
||||
```
|
||||
|
||||
overrides the in-makefile set `DESTDIR`, while both
|
||||
|
||||
```console
|
||||
INSTALL_ROOT=/path/to/image make install
|
||||
make install INSTALL_ROOT=/path/to/image
|
||||
```
|
||||
|
||||
use `DESTDIR=$(INSTALL_ROOT)`, even if `DESTDIR` eventually is defined in the
|
||||
environment, because variable-setting priority is
|
||||
1. commandline
|
||||
2. in-makefile
|
||||
3. environment
|
||||
|
||||
Note: This only applies to the Expat library itself, building UTF-16 versions
|
||||
of xmlwf and the tests is currently not supported.
|
||||
|
||||
When using Expat with a project using autoconf for configuration, you
|
||||
can use the probing macro in `conftools/expat.m4` to determine how to
|
||||
include Expat. See the comments at the top of that file for more
|
||||
information.
|
||||
|
||||
A reference manual is available in the file `doc/reference.html` in this
|
||||
distribution.
|
@ -0,0 +1,141 @@
|
||||
/***************************************************************************
|
||||
* _ _ ____ _
|
||||
* Project ___| | | | _ \| |
|
||||
* / __| | | | |_) | |
|
||||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 2016 - 2017, Steve Holme, <steve_holme@hotmail.com>.
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
||||
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
||||
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
* THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* Except as contained in this notice, the name of a copyright holder shall
|
||||
* not be used in advertising or otherwise to promote the sale, use or other
|
||||
* dealings in this Software without prior written authorization of the
|
||||
* copyright holder.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
|
||||
|
||||
HMODULE _Expat_LoadLibrary(LPCTSTR filename);
|
||||
|
||||
|
||||
#if !defined(LOAD_WITH_ALTERED_SEARCH_PATH)
|
||||
#define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
|
||||
#endif
|
||||
|
||||
#if !defined(LOAD_LIBRARY_SEARCH_SYSTEM32)
|
||||
#define LOAD_LIBRARY_SEARCH_SYSTEM32 0x00000800
|
||||
#endif
|
||||
|
||||
/* We use our own typedef here since some headers might lack these */
|
||||
typedef HMODULE (APIENTRY *LOADLIBRARYEX_FN)(LPCTSTR, HANDLE, DWORD);
|
||||
|
||||
/* See function definitions in winbase.h */
|
||||
#ifdef UNICODE
|
||||
# ifdef _WIN32_WCE
|
||||
# define LOADLIBARYEX L"LoadLibraryExW"
|
||||
# else
|
||||
# define LOADLIBARYEX "LoadLibraryExW"
|
||||
# endif
|
||||
#else
|
||||
# define LOADLIBARYEX "LoadLibraryExA"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* _Expat_LoadLibrary()
|
||||
*
|
||||
* This is used to dynamically load DLLs using the most secure method available
|
||||
* for the version of Windows that we are running on.
|
||||
*
|
||||
* Parameters:
|
||||
*
|
||||
* filename [in] - The filename or full path of the DLL to load. If only the
|
||||
* filename is passed then the DLL will be loaded from the
|
||||
* Windows system directory.
|
||||
*
|
||||
* Returns the handle of the module on success; otherwise NULL.
|
||||
*/
|
||||
HMODULE _Expat_LoadLibrary(LPCTSTR filename)
|
||||
{
|
||||
HMODULE hModule = NULL;
|
||||
LOADLIBRARYEX_FN pLoadLibraryEx = NULL;
|
||||
|
||||
/* Get a handle to kernel32 so we can access it's functions at runtime */
|
||||
HMODULE hKernel32 = GetModuleHandle(TEXT("kernel32"));
|
||||
if(!hKernel32)
|
||||
return NULL;
|
||||
|
||||
/* Attempt to find LoadLibraryEx() which is only available on Windows 2000
|
||||
and above */
|
||||
pLoadLibraryEx = (LOADLIBRARYEX_FN) GetProcAddress(hKernel32, LOADLIBARYEX);
|
||||
|
||||
/* Detect if there's already a path in the filename and load the library if
|
||||
there is. Note: Both back slashes and forward slashes have been supported
|
||||
since the earlier days of DOS at an API level although they are not
|
||||
supported by command prompt */
|
||||
if(_tcspbrk(filename, TEXT("\\/"))) {
|
||||
/** !checksrc! disable BANNEDFUNC 1 **/
|
||||
hModule = pLoadLibraryEx ?
|
||||
pLoadLibraryEx(filename, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) :
|
||||
LoadLibrary(filename);
|
||||
}
|
||||
/* Detect if KB2533623 is installed, as LOAD_LIBARY_SEARCH_SYSTEM32 is only
|
||||
supported on Windows Vista, Windows Server 2008, Windows 7 and Windows
|
||||
Server 2008 R2 with this patch or natively on Windows 8 and above */
|
||||
else if(pLoadLibraryEx && GetProcAddress(hKernel32, "AddDllDirectory")) {
|
||||
/* Load the DLL from the Windows system directory */
|
||||
hModule = pLoadLibraryEx(filename, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
|
||||
}
|
||||
else {
|
||||
/* Attempt to get the Windows system path */
|
||||
UINT systemdirlen = GetSystemDirectory(NULL, 0);
|
||||
if(systemdirlen) {
|
||||
/* Allocate space for the full DLL path (Room for the null terminator
|
||||
is included in systemdirlen) */
|
||||
size_t filenamelen = _tcslen(filename);
|
||||
TCHAR *path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen));
|
||||
if(path && GetSystemDirectory(path, systemdirlen)) {
|
||||
/* Calculate the full DLL path */
|
||||
_tcscpy(path + _tcslen(path), TEXT("\\"));
|
||||
_tcscpy(path + _tcslen(path), filename);
|
||||
|
||||
/* Load the DLL from the Windows system directory */
|
||||
/** !checksrc! disable BANNEDFUNC 1 **/
|
||||
hModule = pLoadLibraryEx ?
|
||||
pLoadLibraryEx(path, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) :
|
||||
LoadLibrary(path);
|
||||
|
||||
}
|
||||
free(path);
|
||||
}
|
||||
}
|
||||
|
||||
return hModule;
|
||||
}
|
||||
|
||||
#else /* defined(_WIN32) */
|
||||
|
||||
/* ISO C requires a translation unit to contain at least one declaration
|
||||
[-Wempty-translation-unit] */
|
||||
typedef int _TRANSLATION_UNIT_LOAD_LIBRARY_C_NOT_EMTPY;
|
||||
|
||||
#endif /* defined(_WIN32) */
|
Loading…
Reference in new issue