[CMake] Problem in ADD_CUSTOM_COMMAND

Brandon Van Every bvanevery at gmail.com
Mon Feb 11 10:49:52 EST 2008


On Feb 8, 2008 6:35 AM, Sylvain Benner <benner at virtools.com> wrote:
>
> >
> > SET(CMAKE_COMMAND "copy \"${vpcl_path}\" \"${PROJECT_SOURCE_DIR}\"")
> >
> > ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND ${CMAKE_COMMAND}
> > VERBATIM)
> >
> I think you have forgot the ARGS argument

ARGS is old school.  Not necessary anymore.

I think someone forgot to convert the paths to native Windows paths.
Use file(TO_NATIVE_PATH path result)


Cheers,
Brandon Van Every


More information about the CMake mailing list