Echo Command in cmakelist

I want to add comments to cmakelist so that they appear during make.
for exmaple, before starting a module, the command prompt should show “Starting module1”…

makefile creators are using echo command. I want to know how to do the same in cmakelists.

message(STATUS "Starting module1") is probably what you want.

message(STATUS “”) prints when we are generating makefile from cmake.
I want to print during makefile to executables

Oh! CMake doesn’t have a builtin way of doing that. I suppose you could do add_custom_command(PRE_BUILD) for the libraries you want to do this for.