diff options
author | Peter Drahoš <drahosp@gmail.com> | 2012-09-27 01:36:13 -0700 |
---|---|---|
committer | Peter Drahoš <drahosp@gmail.com> | 2012-09-27 01:36:13 -0700 |
commit | b4cdc46eaafdadf2e87de2667d68cf55aa839464 (patch) | |
tree | 6a8220bcda6aaec900192a294d2641547b6b480e | |
parent | 8cd5e176eb15fefe74a003b8f98999a172d94075 (diff) | |
parent | edd550e82d74184e239199479f913299862bd4c7 (diff) | |
download | lua-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.txt | 3 |
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 ) |