Skip to content

Commit

Permalink
only try to compile lua as a dll on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
TannerRogalsky committed Mar 5, 2016
1 parent 2ae694b commit 9a293cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua-5.1.5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 9a293cb

Please # to comment.