[CMake] avoiding searching for console bridge if its use is disabled