most people either
- only build the main repository and no contrib code (cuda is contrib), then the world library’s size is manageable
-
don’t link everything into a
world
library but individual module libraries (opencv_core, opencv_highgui, …)
your other project doesn’t have to link against opencv_world. it can just as well link against the specific module libraries it actually uses. ppencv_world
is a mere convenience. one might even say it’s for lazy people.