[CMake] Help message for custom function/command

Marek Vojtko (Firaxis) Marek.Vojtko at firaxis.com
Wed Jul 3 10:47:28 EDT 2013


On Tue, 2 Jul 2013 04:41:18 +0000 (UTC) Gennadiy Rozental wrote:

> Is there anyway to make cmake to print a help message for my custom
> functions I wrote and placed into some common modules? I want to be able
> to help other people who is going to develop within my framework.

Look at the message(STATUS ...) function [0] in the CMake documentation. I use that to write out text informing users of my CMake functions of what is going on and any non-fatal errors.

Hth,

[0] http://cmake.org/cmake/help/v2.8.10/cmake.html#command:message
--
Marek Vojtko
mail: marek.vojtko at firaxis.com




More information about the CMake mailing list