There are strange things hardwired in FindThirdPartyLua.cmake. Lua 5.1 is forced on windows and "unix if not fedora21". On recent fedora (tested with fedora 28/29), this (legacy?) library does not contain lua_setglobal (it seems it is contained in ubuntu lua5.1). FindThirdPartyLua.cmake has a "hardwired" correction for the specific version of fedora 21 (which is ~4 years old). Corrected by applying the fix to all fedora distributions (it currently selects lua5.3.so which indeed contains the lua_setglobal symbol).