[CMake] Exclude a target

Esben Mose Hansen kde at mosehansen.dk
Mon Sep 22 14:21:26 EDT 2008


On Monday 22 September 2008 20:00:03 Leopold Palomo Avellaneda wrote:
> Hi,
>
> I create some custom targets, but I would like that make does NOT DO it if
> I run make, _only_ when I run make mytarget.
>
> Is this possible?

Use add_custom_target without the ADD. See the doc for add_custom_target.

-- 
kind regards, Esben


More information about the CMake mailing list