[CMake] Problem in ADD_CUSTOM_COMMAND
Malhotra, Anupam
Anupam.Malhotra at Safenet-inc.com
Mon Feb 11 01:33:11 EST 2008
Hi
I tried
ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND copy ARGS
"\"${vpcl_path}\"" "\"${PROJECT_SOURCE_DIR}\"" VERBATIM)
And also
ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND copy ARGS
"${vpcl_path}" "${PROJECT_SOURCE_DIR}" VERBATIM)
But neither of the two is working. I am getting the error " The
filename, directory name, or volume label syntax is incorrect".
Does the path needs to be given in some other format?
Thanks and Regards
Anupam Malhotra
-----Original Message-----
From: Sylvain Benner [mailto:benner at virtools.com]
Sent: Friday, February 08, 2008 5:05 PM
To: Malhotra, Anupam
Cc: cmake at cmake.org
Subject: Re: [CMake] Problem in ADD_CUSTOM_COMMAND
>
> 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
The information contained in this electronic mail transmission
may be privileged and confidential, and therefore, protected
from disclosure. If you have received this communication in
error, please notify us immediately by replying to this
message and deleting it from your computer without copying
or disclosing it.
More information about the CMake
mailing list