build: Fix apple-non-apple cross building

When cross compiling for an apple platform on a non-apple platform
(or the reverse), `if(APPLE)` in line 32 should refer to the target
platform. Without importing the `APPLE` variable, it refers to the
host platform.

Reviewed-by: John Bowler <jbowler@acm.org>
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
This commit is contained in:
Joost Nieuwenhuijse
2025-02-26 22:17:08 +01:00
committed by Cosmin Truta
parent e2c1579816
commit dc71f481ff
2 changed files with 3 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ Author List
* Jeremy Maitin-Shepard
* John Bowler
* Jon Creighton
* Joost Nieuwenhuijse
* Kyle Bentley
* Martin Storsjö
* Owen Rudge