[CMake] having ADD_CUSTOM_COMMAND call a macro
Brandon Van Every
bvanevery at gmail.com
Tue Jan 8 03:17:00 EST 2008
On Jan 7, 2008 7:07 PM, Jesse Corrington <jesse.corrington at gmail.com> wrote:
> Can the command for add_custom_command be a macro or does it need to be a
> built in cmake command? Thanks
It can't be a macro. It can't be any CMake command. The COMMAND has
to be some sort of shell command, like running a tool. You could
execute a CMake script containing CMake commands using "COMMAND
${CMAKE_COMMAND} -P myscript".
Cheers,
Brandon Van Every
More information about the CMake
mailing list