Redirect Open quickFix window after building in FloatermNew

I have a Build() function that runs my CMake command.
This function opens the QuickFix window if the build generates errors so I can quickly jump to error locations and fix them.

The problem is that Vim will wait for the full build to finish before outputing to the quickfix window. Because of that I started experimenting with FloatermNew with a simple command line like this:

:silent exec FloatermNew “cmake --build .build”

It works perfectly and outputs in real time. But I don’t know how to open the quickfix window with the compiler errors in case the build fails. Actually I don’t even know how to check if the command fails after running it via FloatermNew…

Could anyone please point me in the right direction ?