Building lua-zlib on windows 10
Building zlib using cmake on VS dev

using luarocks to install

I believe the issue lies withing the rockspec. Looking at the 1.2-2.rockspec

When replacing lines 37-41 of the rockspec with
platforms = { windows = { variables = { LUA_LIBRARIES = "$(LUA_LIBDIR)/$(LUALIB)" }}},
it fixes the build issue on windows.

I am unsure if this is an issue from my end (or even the correct fix), but wanted to mention I noticed this when building.
Building lua-zlib on windows 10
Building zlib using cmake on VS dev

using luarocks to install

I believe the issue lies withing the rockspec. Looking at the 1.2-2.rockspec

When replacing lines 37-41 of the rockspec with
platforms = { windows = { variables = { LUA_LIBRARIES = "$(LUA_LIBDIR)/$(LUALIB)" }}},it fixes the build issue on windows.

I am unsure if this is an issue from my end (or even the correct fix), but wanted to mention I noticed this when building.