[CMake] multiple line of comment howto

Petr Kmoch petr.kmoch at gmail.com
Mon Jul 30 05:56:26 EDT 2012


Hi.

I think you're looking for
...
COMMENT "${line0}\n${line1}\n${line2}\n${line1}\n${line0}"
...

Petr

On Mon, Jul 30, 2012 at 11:42 AM, luxInteg <lux-integ at btconnect.com> wrote:
> Greetings
>
> I am learniong cmake.  From the documentation:-
>  add_custom_target(Name [ALL] [command1 [args1...]]
>                     [COMMAND command2 [args2...] ...]
>                     [DEPENDS depend depend depend ... ]
>                     [WORKING_DIRECTORY dir]
>                     [COMMENT comment] [VERBATIM]
>                     [SOURCES src1 [src2...]])
>
>
>
>
> I want to  generate multiple line   in the compiler output
>   when using add_custom_target()  such as  shown below
>
> #-----------
> set(line0 ""                )
> set(line1     "############################" )
> set(line2    "compiling $some_source_code} ' )
> #------
>
> add_custom_command(whatever ALL
>   .......
> COMMAND ${whatever}
> COMMENT  ${line0}  ${line1}  ${line2} ${line1} ${line0}
> VERBATIM )
>
>
> is the above recommended   to generate multiple lines?
> Guidance would be appreciated.
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list