Is it possible to create several targets with different toolchains in CmakeList.txt?

I know that you can set compiler settings separately for each target. Is it possible to define a different compiler for each target? For example, to build an application for different platforms (Windows Linux, etc.) in one launch

CMake only supports using a single toolchain throughout the build. You can’t mix different toolchains for different targets. That said, you can use the ExternalProject module to set up sub-builds which can each use a different toolchain.