From dead85b41a26fc845c3e9330d2d38ffbc3e99fbf Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Fri, 5 Jul 2024 02:20:47 +0200 Subject: [PATCH] trying to fix macOS build --- cmake/BuildLuaJit.cmake | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmake/BuildLuaJit.cmake b/cmake/BuildLuaJit.cmake index 2efc08d0..f0fcceac 100644 --- a/cmake/BuildLuaJit.cmake +++ b/cmake/BuildLuaJit.cmake @@ -15,9 +15,15 @@ if(NOT WIN32) # gmake is thereĀ“ find_program(MAKE_EXECUTABLE NAMES gmake make REQUIRED) # Makefile requires MACOSX_DEPLOYMENT_TARGET on Apple - if(CMAKE_OSX_DEPLOYMENT_TARGET) - set(MACOSX_DEPLOYMENT_TARGET + if (APPLE) + if("${CMAKE_OSX_DEPLOYMENT_TARGET}") + set(MACOSX_DEPLOYMENT_TARGET "MACOSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}") + else() + message(WARNING "CMAKE_OSX_DEPLOYMENT_TARGET was not set") + set(MACOSX_DEPLOYMENT_TARGET + "MACOSX_DEPLOYMENT_TARGET=10.12") + endif() endif() set(libluajit_static_lib ${install_dir}/lib/libluajit-5.1.a) ExternalProject_Add(