LuaDist/lua — pull request #3 by flaviojs (2012-09-26 16:11:48+00:00)
Title: Add missing LUA_BUILD_AS_DLL definition to the liblua target.

Fixes lua.dll being generated without public symbols by the Visual Studio compiler;
- when building a DLL you either need a DEF file listing the public symbols or use __declspec(export) in the public symbols.
- when linking to a DLL you only need to use __declspec(import) when referencing data,
since lua only exports functions it isn't needed for the other targets.

-----

Tested compilation in the following dev environments: (Windows 7)
* Visual Studio 10 x86 + cmake 2.8.8
* Visual Studio 10 x64 + cmake 2.8.8
* MinGW + gcc 4.6.2 + cmake 2.8.5
* MSYS + MinGW + gcc 4.6.2 + cmake 2.8.5
* Cygwin + gcc 4.5.3 + cmake 2.8.7