From 9a293cb878ee93fc50cf0fbb927a67c156e7445d Mon Sep 17 00:00:00 2001 From: Tanner Rogalsky Date: Sat, 5 Mar 2016 15:31:17 -0500 Subject: [PATCH] only try to compile lua as a dll on windows --- lua-5.1.5/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua-5.1.5/CMakeLists.txt b/lua-5.1.5/CMakeLists.txt index 5a81261..3cf9aa3 100644 --- a/lua-5.1.5/CMakeLists.txt +++ b/lua-5.1.5/CMakeLists.txt @@ -46,6 +46,8 @@ endif() if (LUA_BUILD_SHARED) add_library(lua51 SHARED ${LUA_SRC}) target_include_directories(lua51 PUBLIC src) - set_property(TARGET lua51 PROPERTY COMPILE_DEFINITIONS LUA_BUILD_AS_DLL=1) + if (WIN32) + set_property(TARGET lua51 PROPERTY COMPILE_DEFINITIONS LUA_BUILD_AS_DLL=1) + endif (WIN32) install(TARGETS lua51 RUNTIME DESTINATION . LIBRARY DESTINATION .) endif()