mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 11:53:14 +08:00
23 lines
549 B
CMake
23 lines
549 B
CMake
include(FetchContent)
|
|
|
|
message("LuaJIT")
|
|
|
|
# For some reason putting this into crosscompile.cmake doesn't work.
|
|
if(CROSSCOMPILE)
|
|
set(CMAKE_SYSTEM_VERSION 10.0.26100)
|
|
endif()
|
|
set(LUAJIT_BUILD_TOOL OFF)
|
|
set(LUAJIT_FORCE_UTF8_FOPEN ON)
|
|
|
|
FetchContent_Declare(
|
|
luajit
|
|
GIT_REPOSITORY https://github.com/WohlSoft/LuaJIT.git
|
|
GIT_TAG 27878965958986687f8caaf8a2b6b73bc5df85e0
|
|
GIT_PROGRESS TRUE
|
|
)
|
|
|
|
FetchContent_MakeAvailable(luajit)
|
|
target_compile_definitions(libluajit PRIVATE
|
|
"_CRT_SECURE_NO_WARNINGS"
|
|
"LUAJIT_ENABLE_LUA52COMPAT"
|
|
) |