From b6e3ed364d58f75b0961775c482e09e2f8f452e9 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Fri, 3 Jan 2020 22:11:06 +0200 Subject: [PATCH] Try fix warning --- lualib/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lualib/CMakeLists.txt b/lualib/CMakeLists.txt index b1bf6e4..3f97344 100644 --- a/lualib/CMakeLists.txt +++ b/lualib/CMakeLists.txt @@ -26,3 +26,9 @@ target_include_directories(lualib ${PUBLIC_INCLUDES} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) + +if (APPLE) + target_compile_definitions(lualib PUBLIC LUA_USE_MACOSX) +elseif (UNIX) + target_compile_definitions(lualib PUBLIC LUA_USE_LINUX) +endif()