diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d3a610f..77ee5b92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -280,7 +280,7 @@ if(ENABLE_CELX) if(LUAJIT_FOUND) link_libraries(LuaJIT::LuaJIT) else() - find_package(Lua REQUIRED) + find_package(Lua ${LUA_VERSION} EXACT REQUIRED) include(FixLua) MakeLuaTarget() link_libraries(Lua::Lua)