There is a C::B download that has a C/C++ compiler already set up for the IDE, just install and C::B has the file locations pre-set.
My installed IDEs (Code::Blocks & Visual Studio 2019 Community) are installed in a location other than the default. No extra setup required other than set an install location and install.