Skip to content

Commit

Permalink
trying to fix macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Jul 5, 2024
1 parent b72e086 commit dead85b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmake/BuildLuaJit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit dead85b

Please sign in to comment.