[CMake] ExternalProject_Add inserting " around *'s "

Tim St. Clair timothysc at gmail.com
Mon Jan 11 17:19:12 EST 2010


I found the source of the error:

ExternalProject.cmake (line 583)

  add_custom_command(
    OUTPUT ${stamp_dir}${cfgdir}/${name}-${step}
    COMMENT ${comment}
    COMMAND ${command}
    COMMAND ${touch}
    DEPENDS ${depends}
    WORKING_DIRECTORY ${work_dir}
    VERBATIM
    )

nix VERBATIM,  and all is well

Hope this helps others from wasting hours of their life as I have.

Cheers,
Tim

On Thu, Jan 7, 2010 at 10:45 PM, Tim St. Clair <timothysc at gmail.com> wrote:
> For whatever command I am using if I insert a wild card to be passed in e.g.
>
> INSTALL_COMMAND cp blah/* ${MY_STAGING}
>
> becomes cp "blah/*"
>
> which will then yield an error.
>
> Is there some escape sequence I'm missing to avoid the quoting?
>
> --
> Cheers,
> Timothy St. Clair
>



-- 
Cheers,
Timothy St. Clair


More information about the CMake mailing list