You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.1 KiB
64 lines
2.1 KiB
2 years ago
|
^----------
|
||
|
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 : '<base>/foo/cmake_root'
|
||
|
ENV{FOO_ROOT}: '<base>/foo/env_root'
|
||
|
+
|
||
|
CMake Warning \(dev\) at CMP0144-common.cmake:[0-9]+ \(find_package\):
|
||
|
Policy CMP0144 is not set: find_package uses upper-case <PACKAGENAME>_ROOT
|
||
|
variables. Run "cmake --help-policy CMP0144" for policy details\. Use the
|
||
|
cmake_policy command to set the policy and suppress this warning\.
|
||
|
|
||
|
CMake variable FOO_ROOT is set to:
|
||
|
|
||
|
[^
|
||
|
]*/Tests/RunCMake/find_package/PackageRoot/foo/cmake_root
|
||
|
|
||
|
For compatibility, find_package is ignoring the variable, but code in a
|
||
|
\.cmake module might still use it\.
|
||
|
Call Stack \(most recent call first\):
|
||
|
CMP0144-common.cmake:[0-9]+ \(RunTestCase\)
|
||
|
CMP0144-WARN-CaseInsensitive.cmake:[0-9]+ \(include\)
|
||
|
CMakeLists.txt:[0-9]+ \(include\)
|
||
|
This warning is for project developers. Use -Wno-dev to suppress it.
|
||
|
+
|
||
|
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 : '<base>/foo/cmake_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}: '<base>/foo/env_root'
|
||
|
|
||
|
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
|
||
|
|
||
|
----------$
|