A strange thing is happening in ADD_CUSTOM_COMMAND. I am giving the
following command in CMakeLists.txt:

 

ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD MAIN_DEPENDENCY vpcl COMMAND
copy "$(TargetPath)" "${PROJECT_SOURCE_DIR_UPDATED}"

 

But when the dsw and dsp is being generated the command displaying in
Post-Build step is:

copy "$"(TargetPath) "C:\NIGHTLY_BUILD_IMPROVED_TESTING\Visual Studio
6Debug"

 

Why is the value "$(TargetPath)" changing to "$"(TargetPath)?

 

Thanks and Regards

Anupam Malhotra

 

 

-----Original Message-----
From: Sylvain Benner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 3:32 PM
To: Malhotra, Anupam
Cc: Cmake Mailing List
Subject: Re: [CMake] Problem in ADD_CUSTOM_COMMAND

 

 

>  Is there any other way apart from GET_TARGET_PROPERTY by which I can
locate the exact path (without ${IntDir} in the path) of my library?

>   

 

Try $(ConfigurationName) to reference the targeted build directory, I'm 

not sure it is available in Visual Studio 6 but is likely to exist.

 

--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.


_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to