[CMake] Private macros

Alexander Neundorf a.neundorf-work at gmx.net
Fri Oct 17 13:09:40 EDT 2008


On Friday 17 October 2008, Markus Mehrwald wrote:
> Hello everyone,
>
> I wrote a macro which does some initialisations and things needed before
> using my actual macros. Is it possible to prevent normal user to call
> this init macro and only use it internally in my own macros?

Not really.
Mark it as internal, e.g. by prefixing it with an underscore, and don't 
include it in the public user documentation (or clearly declare it as 
internal there).

Also have a look at VARIABLE_WATCH(), maybe you can use this to do what you 
want.

Alex


More information about the CMake mailing list