From 1a4805365bbfcea476afc92f2b6a945e5963919e Mon Sep 17 00:00:00 2001 From: peri4 Date: Tue, 20 Apr 2021 20:01:19 +0300 Subject: [PATCH] lua fix --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 97a3fe1a..c2a5b924 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -438,7 +438,9 @@ if (NOT CROSSTOOLS) set(_lua_src_hdr "${_lua_src_dir}/lua.hpp" "${_lua_src_dir}/lua.h" "${_lua_src_dir}/luaconf.h" "${_lua_src_dir}/lualib.h") pip_module(lua "" "PIP Lua support" "${_lua_src_dir};${_lua_bri_dir}" "${_lua_src_dir}" " (internal)") target_include_directories(pip_lua PUBLIC "${_lua_src_dir}" "${_lua_bri_dir}") - target_compile_definitions(pip_lua PRIVATE LUA_BUILD_AS_DLL LUA_CORE) + if (WIN32) + target_compile_definitions(pip_lua PRIVATE LUA_BUILD_AS_DLL LUA_CORE) + endif() list(APPEND HDR_DIRS "${_lua_bri_dir}/LuaBridge") list(APPEND HDRS ${_lua_src_hdr})