Export OpenCVModules error trying to build on void linux

CMake Error at cmake/OpenCVGenConfig.cmake:49 (export):
export Export set “OpenCVModules” not found.

I’m trying to rebuild opencv on void linux because the default doesn’t ship with java support and I’ve come across an error I don’t understand. where do I even begin to debug?

so, what did you do, exactly ? what did you start with ?

Downloaded the latest opencv 3.4.x source, and compiled it with all flags related to java enabled and nothing else