aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-11-27 01:35:15 -0500
committerMichael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com>2019-12-09 11:15:58 -0500
commit98fd4e5557cb21affd2e2c124a132953b471a748 (patch)
treeb350f0499b18795c89378790074a790488a3c351 /mesonbuild/mesonlib.py
parent419a7a8f51fb68cdd40f7005394590a0963d3f32 (diff)
downloadmeson-98fd4e5557cb21affd2e2c124a132953b471a748.zip
meson-98fd4e5557cb21affd2e2c124a132953b471a748.tar.gz
meson-98fd4e5557cb21affd2e2c124a132953b471a748.tar.bz2
cmake: add project language to cmakelists.txt
cmake: get language from Meson project if not specified as depedency(..., langugage: ...) deps: add threads method:cmake dependency('threads', method: 'cmake') is useful for cmake unit tests or those who just want to find threads using cmake. cmake: project(... Fortran) generally also requires C language
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index 0d8ec3c..5c3fc45 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -976,7 +976,9 @@ def replace_if_different(dst, dst_tmp):
else:
os.unlink(dst_tmp)
-def listify(item, flatten=True, unholder=False):
+def listify(item: typing.Any,
+ flatten: bool = True,
+ unholder: bool = False) -> typing.List[typing.Any]:
'''
Returns a list with all args embedded in a list if they are not a list.
This function preserves order.