[Cmake] How to preform different "PostBuildEvent" in debug and release

Bill Hoffman bill.hoffman at kitware.com
Fri May 16 11:52:36 EDT 2003


There is no way to do that directly.  However, what you could
do is use the ${CMAKE_CFG_INTDIR} variable in the command, which
will evaluate to Release/Debug/ when the custom command is run.
Then use a .bat file to copy the file based on the value of IntDir.


-Bill


At 09:10 AM 5/16/2003, Patrick Rochon wrote:
>Hi,
>
>I am using cmake to generate Visual Studio 7 project files.
>
>I would like to know how to preform a "PostBuildEvent" in debug and a
>different one in release. Is it possible ?
>
>For example, after building :
>c:\dev\rts\debug\rts.dll
>I want to copy it in :
>c:\dev\binaries\rtsD.dll
>
>and after building :
>c:\dev\rts\release\rts.dll
>I want to copy it in :
>c:\dev\binaries\rtsR.dll
>
>Thanks!
>
>Patrick
>Code Administrator
>Stelvio inc.
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 






More information about the CMake mailing list