summaryrefslogtreecommitdiff
path: root/source/luametatex/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'source/luametatex/cmake')
-rw-r--r--source/luametatex/cmake/lua.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/luametatex/cmake/lua.cmake b/source/luametatex/cmake/lua.cmake
index ed0ab1803..7c7eac35d 100644
--- a/source/luametatex/cmake/lua.cmake
+++ b/source/luametatex/cmake/lua.cmake
@@ -82,6 +82,14 @@ if (NOT MSVC)
)
endif (NOT MSVC)
+if (CMAKE_HOST_APPLE)
+ target_compile_definitions(lua PUBLIC
+ TARGET_OS_IOS=0
+ TARGET_OS_WATCH=0
+ TARGET_OS_TV=0
+ )
+endif (CMAKE_HOST_APPLE)
+
# this seems to be ok for mingw default
#
# todo: what is the right way to increase the stack (mingw)