[CMake] optional parameters in add_custom_target?
Gregor Jasny
gjasny at googlemail.com
Mon May 20 11:29:25 EDT 2019
Hello,
On 20.05.19 16:01, hex wrote:
> What means command1 [args1...]]? Or, should this read
>
> *add_custom_target(Name [ALL] [COMMAND command1 [args1...]]**
> ** [COMMAND command2 [args2...] ...]*
I believe this is due to backward compatibility (pre 2.6) reasons so
that you could still write:
add_custom_target(sometarget /bin/true)
Thanks,
Gregor
More information about the CMake
mailing list