diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 6882ceb93..2bd59862d 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -162,6 +162,7 @@ if(ENABLE_SCRIPTING) lua/lstrlib.c lua/ltablib.c lua/lutf8lib.c) + target_compile_definitions(lua PUBLIC LUA_FLOORN2I=1) target_include_directories(lua PUBLIC lua) target_include_directories(lauxlib PUBLIC lua) target_include_directories(lualib PUBLIC lua)