On Linux we have another issue. CUDA is also used in OpenGL wrappers (if both `WITH_CUDA` and `WITH_OPENGL` were enabled). Probably the easiest way will be to disable dynamic CUDA linkage on Linux now and possibly return to this task in 3.0.