I want to build my full workspace in release mode, but If I select Build -> Select target -> Release, then Build workspace, the compiling starts with debug target. How can I build the full workspace in release mode?
There is probably a misunderstanding regarding what "Debug" and "Release" means from your side. You have used Microsoft Visual Studio before, haven't you
Your projects (which you probably have imported from VS) have a
target for
Debug and a target for
Release. That is not the exact same thing as in Visual Studio, though.
If you select "Release" from the menu, then build/rebuild will build the target "Release" of the currently active project instead of building all targets in that project.
However, if you build / rebuild the workspace, it will rebuild all targets. That is because "Debug" and "Release" are not some special builtin settings with a well-defined meaning, but arbitrary target names. A target basically tells the IDE to do
some specific operation with a defined subset of all project files, producing one specific output. That could be a shared library (which may respectively be used by another target), a program, or virtually anything.
A target name could be anything, the IDE cannot possibly know that "Release" means "Release". To the IDE, "Release" means just as much as "MainApplication" or "SDK" or "CoreLibraries".