From d1ea2eaff150aea24b1abd10547d1e6594bbcd84 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 21 Apr 2024 22:43:24 -0300 Subject: [PATCH] Avoid warnings about redefining LUA_USE_WINDOWS --- third_party/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 3c8e07a7b..9bc9eb008 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -197,7 +197,8 @@ if(ENABLE_SCRIPTING) lua/lutf8lib.c) if(WIN32) - target_compile_definitions(lua PUBLIC LUA_USE_WINDOWS=1) + # LUA_USE_WINDOWS is defined in luaconf.h when we compile with _WIN32 + #target_compile_definitions(lua PUBLIC LUA_USE_WINDOWS=1) elseif(APPLE) target_compile_definitions(lua PUBLIC LUA_USE_MACOSX=1) elseif(UNIX)