Fix luajit on Mac OS X

This commit is contained in:
Eduardo Bart 2013-03-01 17:10:02 -03:00
parent a145ad282b
commit 32df317163
1 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,10 @@ if(LUAJIT)
find_package(LuaJIT REQUIRED)
set(LUA_INCLUDE_DIR ${LUAJIT_INCLUDE_DIR})
set(LUA_LIBRARY ${LUAJIT_LIBRARY})
if(APPLE)
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -pagezero_size 10000 -image_base 100000000")
endif()
else()
find_package(Lua REQUIRED)
endif()