summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Drahoš <drahosp@gmail.com>2012-09-27 01:36:13 -0700
committerPeter Drahoš <drahosp@gmail.com>2012-09-27 01:36:13 -0700
commitb4cdc46eaafdadf2e87de2667d68cf55aa839464 (patch)
tree6a8220bcda6aaec900192a294d2641547b6b480e
parent8cd5e176eb15fefe74a003b8f98999a172d94075 (diff)
parentedd550e82d74184e239199479f913299862bd4c7 (diff)
downloadlua-b4cdc46eaafdadf2e87de2667d68cf55aa839464.tar.gz
Merge pull request #3 from flaviojs/fix-VS-dll-generation
Add missing LUA_BUILD_AS_DLL definition to the liblua target.
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fef40e9..9e18e81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -121,6 +121,9 @@ endif ( )
add_library ( liblua SHARED ${SRC_CORE} ${SRC_LIB} ${LUA_DLL_RC} ${LUA_DEF} )
target_link_libraries ( liblua ${LIBS} )
set_target_properties ( liblua PROPERTIES OUTPUT_NAME lua CLEAN_DIRECT_OUTPUT 1 )
+if ( LUA_BUILD_AS_DLL )
+ set_target_properties ( liblua PROPERTIES COMPILE_DEFINITIONS LUA_BUILD_AS_DLL )
+endif ( )
add_executable ( lua ${SRC_LUA} src/lua.rc )
target_link_libraries ( lua liblua )