check-style: add a note about find_path/find_library check

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-01-20 17:58:38 +03:00
parent 4f8438bb34
commit 5c8d02724c

View File

@ -327,6 +327,11 @@ then
fi fi
# Check that there is no system-wide libraries/headers in use. # Check that there is no system-wide libraries/headers in use.
#
# NOTE: it is better to override find_path/find_library in cmake, but right now
# it is not possible, see [1] for the reference.
#
# [1]: git grep --recurse-submodules -e find_library -e find_path contrib
if git grep -e find_path -e find_library -- :**CMakeLists.txt; then if git grep -e find_path -e find_library -- :**CMakeLists.txt; then
echo "There is find_path/find_library usage. ClickHouse should use everything bundled. Consider adding one more contrib module." echo "There is find_path/find_library usage. ClickHouse should use everything bundled. Consider adding one more contrib module."
fi fi