From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: `build_helper=qemu` has no effect with `build_style=cmake`?
Date: Wed, 03 Jan 2024 14:46:13 +0100 [thread overview]
Message-ID: <20240103134613.0GxjBupmYy9qij5H8fuIF0ViXnhH9dKffgjK50_9ybA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48034@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1875373916
Comment:
- No, it's not broken, `CROSSCOMPILING_EMULATOR` works
- No, your reading in https://cmake.org/cmake/help/latest/prop_tgt/CROSSCOMPILING_EMULATOR.html is not wrong, you're reading it correctly
- However, it's not simply like that.
- In order to ask cmake use `CROSSCOMPILING_EMULATOR` to run those foreign executable, you need to tell cmake to run a target, instead of running some random files.
> This command will be added as a prefix to add_test(), add_custom_command(), and add_custom_target() commands **for built target system executables.**
For example: https://github.com/fcitx/fcitx5/blob/1bf0cebe286aeeb87f9b7ae7e4ad69107abb095a/src/modules/spell/CMakeLists.txt#L24-L45
In your case, remove `${CMAKE_BINARY_DIR}/bin/` from https://github.com/LibreSprite/LibreSprite/blob/e3c4506ebc8f5a25a3e558c9d482445b7bc193be/src/app/CMakeLists.txt#L12 may work
prev parent reply other threads:[~2024-01-03 13:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-02 22:44 [ISSUE] " MIvanchev
2024-01-02 23:40 ` oreo639
2024-01-02 23:40 ` oreo639
2024-01-02 23:41 ` oreo639
2024-01-03 2:02 ` chrysos349
2024-01-03 8:35 ` [ISSUE] [CLOSED] " MIvanchev
2024-01-03 8:35 ` MIvanchev
2024-01-03 13:29 ` sgn
2024-01-03 13:30 ` sgn
2024-01-03 13:33 ` sgn
2024-01-03 13:41 ` sgn
2024-01-03 13:46 ` sgn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240103134613.0GxjBupmYy9qij5H8fuIF0ViXnhH9dKffgjK50_9ybA@z \
--to=sgn@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).