[CMake] Problem in ADD_CUSTOM_COMMAND
Sylvain Benner
benner at virtools.com
Fri Feb 8 06:35:27 EST 2008
>
> 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
Try this instead:
ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND copy ARGS
"\"${vpcl_path}\"" "\"${PROJECT_SOURCE_DIR}\"" VERBATIM)
Then if it works try it with your intermediate CMAKE_COMMAND variable.
--Sylvain
More information about the CMake
mailing list