Tools: update 'check_cmake' check to skip PUBLIC/PRIVATE prefixes

This commit is contained in:
Campbell Barton 2023-08-01 14:24:46 +10:00
parent 803589ca5a
commit dddf07c2ce

@ -222,6 +222,9 @@ def cmake_get_src(f: str) -> None:
l = l.replace("${CMAKE_CURRENT_SOURCE_DIR}", cmake_base)
l = l.replace("${CMAKE_CURRENT_BINARY_DIR}", cmake_base_bin)
l = l.strip('"')
# For library lists.
for known_prefix in ("PUBLIC ", "PRIVATE "):
l = l.removeprefix(known_prefix).lstrip()
if not l:
pass