|
|
@ -26,7 +26,7 @@ import textwrap |
|
|
|
import platform |
|
|
|
import platform |
|
|
|
import itertools |
|
|
|
import itertools |
|
|
|
import ctypes |
|
|
|
import ctypes |
|
|
|
from typing import List |
|
|
|
from typing import List, Tuple |
|
|
|
from enum import Enum |
|
|
|
from enum import Enum |
|
|
|
from pathlib import Path, PurePath |
|
|
|
from pathlib import Path, PurePath |
|
|
|
|
|
|
|
|
|
|
@ -37,7 +37,6 @@ from ..environment import BinaryTable, Environment |
|
|
|
from ..mesonlib import MachineChoice, MesonException, OrderedSet, PerMachine |
|
|
|
from ..mesonlib import MachineChoice, MesonException, OrderedSet, PerMachine |
|
|
|
from ..mesonlib import Popen_safe, version_compare_many, version_compare, listify |
|
|
|
from ..mesonlib import Popen_safe, version_compare_many, version_compare, listify |
|
|
|
from ..mesonlib import Version |
|
|
|
from ..mesonlib import Version |
|
|
|
from typing import List, Tuple |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# These must be defined in this file to avoid cyclical references. |
|
|
|
# These must be defined in this file to avoid cyclical references. |
|
|
|
packages = {} |
|
|
|
packages = {} |
|
|
@ -1131,6 +1130,7 @@ class CMakeDependency(ExternalDependency): |
|
|
|
|
|
|
|
|
|
|
|
def _preliminary_find_check(self, name: str, module_path: List[str]) -> bool: |
|
|
|
def _preliminary_find_check(self, name: str, module_path: List[str]) -> bool: |
|
|
|
lname = str(name).lower() |
|
|
|
lname = str(name).lower() |
|
|
|
|
|
|
|
|
|
|
|
# Checks <path>, <path>/cmake, <path>/CMake |
|
|
|
# Checks <path>, <path>/cmake, <path>/CMake |
|
|
|
def find_module(path: str) -> bool: |
|
|
|
def find_module(path: str) -> bool: |
|
|
|
for i in [path, os.path.join(path, 'cmake'), os.path.join(path, 'CMake')]: |
|
|
|
for i in [path, os.path.join(path, 'cmake'), os.path.join(path, 'CMake')]: |
|
|
|