All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-mingw][PATCH] expat: Switch platform to Windows in CMake toolchain file
@ 2020-07-18 16:06 Oleksandr
  0 siblings, 0 replies; 3+ messages in thread
From: Oleksandr @ 2020-07-18 16:06 UTC (permalink / raw)
  To: yocto; +Cc: jpewhacker, Oleksandr Popovych

GNU Autotools build system is considered in upstream as potentially 
deprecated (https://github.com/libexpat/libexpat/issues/330), and
expat library will be switched to use CMake.

So this patch depends on "expat: Added ptest" patch for 'meta' layer, 
and fixes CMake toolchain file to work correctly with 'meta-mingw' 
layer.
---
 recipes-core/expat/expat_%.bbappend | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/recipes-core/expat/expat_%.bbappend b/recipes-core/expat/expat_%.bbappend
index 626ea5b..0fe3aa0 100644
--- a/recipes-core/expat/expat_%.bbappend
+++ b/recipes-core/expat/expat_%.bbappend
@@ -1,3 +1,9 @@
 
 FILES_${PN}-bin_mingw32 = "${bindir}/*.exe ${sbindir}/*.exe"
 
+cmake_do_generate_toolchain_file_append_mingw32() {
+    cat >> ${WORKDIR}/toolchain.cmake <<EOF
+set( CMAKE_SYSTEM_NAME Windows )
+EOF
+}
+
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread
[parent not found: <20200718160325.18297-1-oleksandr.s.popovych@globallogic.com>]

end of thread, other threads:[~2020-07-21 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-18 16:06 [meta-mingw][PATCH] expat: Switch platform to Windows in CMake toolchain file Oleksandr
     [not found] <20200718160325.18297-1-oleksandr.s.popovych@globallogic.com>
2020-07-20 17:47 ` Joshua Watt
2020-07-21 10:03   ` Oleksandr

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.