summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/cmake.bbclass
diff options
context:
space:
mode:
authorEtienne Cordonnier <ecordonnier@snap.com>2024-01-16 10:02:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-21 12:27:12 +0000
commit02dbf1c7d26b24e6a9f25171522352cb2ff66d5c (patch)
treec06304d7d6024fdbbf489468ee62f7bed786866b /meta/classes-recipe/cmake.bbclass
parent6856e4a4f0738f45742b20ab49bfec697cadad91 (diff)
downloadpoky-02dbf1c7d26b24e6a9f25171522352cb2ff66d5c.tar.gz
cmake.bbclass: add Darwin support
This was initially added by https://git.yoctoproject.org/meta-darwin/commit/?id=97a84e083d0c2812e44231d48fb478e9a9cfac79 to the meta-darwin repository, however having it directly in openembedded-core will make the maintenance of meta-darwin easier. (From OE-Core rev: 8ded801178376a02125e653833d8ff062f80457f) Signed-off-by: Dominik Schnitzer <dominik@snap.com> Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/cmake.bbclass')
-rw-r--r--meta/classes-recipe/cmake.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes-recipe/cmake.bbclass b/meta/classes-recipe/cmake.bbclass
index d978b88944..1e353f660f 100644
--- a/meta/classes-recipe/cmake.bbclass
+++ b/meta/classes-recipe/cmake.bbclass
@@ -72,6 +72,8 @@ OECMAKE_TARGET_COMPILE ?= "all"
72OECMAKE_TARGET_INSTALL ?= "install" 72OECMAKE_TARGET_INSTALL ?= "install"
73 73
74def map_host_os_to_system_name(host_os): 74def map_host_os_to_system_name(host_os):
75 if host_os.startswith('darwin'):
76 return 'Darwin'
75 if host_os.startswith('mingw'): 77 if host_os.startswith('mingw'):
76 return 'Windows' 78 return 'Windows'
77 if host_os.startswith('linux'): 79 if host_os.startswith('linux'):