project "ocgcore"
    kind "StaticLib"

    files { "*.cpp", "*.h" }
    links { "lua" }
    
    if BUILD_LUA then
        includedirs { "../lua" }
    end

    filter "not action:vs*"
        buildoptions { "-std=c++14" }

    filter "system:bsd"
        defines { "LUA_USE_POSIX" }

    filter "system:macosx"
        defines { "LUA_USE_MACOSX" }

    filter "system:linux"
        defines { "LUA_USE_LINUX" }
        if not BUILD_LUA then
            includedirs { "/usr/include/lua5.3" }
        end

project "ocgcore"
    kind "StaticLib"

    files { "*.cpp", "*.h" }
    links { "lua" }
    
    if BUILD_LUA then
        includedirs { "../lua" }
    end

    filter "action:vs*"
        includedirs { "../lua" }

    filter "not action:vs*"
        buildoptions { "-std=c++14" }

    filter "system:bsd"
        defines { "LUA_USE_POSIX" }

    filter "system:macosx"
        defines { "LUA_USE_MACOSX" }

    filter "system:linux"
        defines { "LUA_USE_LINUX" }
        if not BUILD_LUA then
            includedirs { "/usr/include/lua5.3" }
        end

Revert "trigger build lua only once"
Revert "trigger build lua only once"

This reverts commit 58bb9a8cbb6c707d4d0ec908b39755e5f51fcb8f.
