Android Studio, CMake. How to print debug message in compile time?

my android studio cmake output:

compile detail:

.cxx/cmake/debug/arm64-v8a/compile_commands.json

cmake output:

.cxx/cmake/debug/arm64-v8a/build_output.txt

Inside the project tree, you can find the log with all the cmake output inside the folder of each generated architecture. The relative path to the file should be something like:

[project folder]/app/.externalNativeBuild/cmake/debug/arm64-v8a/cmake_build_output.txt

Here you can see all the MESSAGE calls of the cmake scripts.