[Bf-committers] cmake updates in trunk (2.49)
Alexander Neundorf
neundorf at kde.org
Tue Apr 28 10:56:13 CEST 2009
On Tuesday 28 April 2009, Dalai Felinto wrote:
> Since CMake has been updated for 2.5 I decided to update it to 2.49
> too (and drop scons for awhile :)
> I started with some FFMpeg updates (committed rev. 19952) and ended up
> trying to port the changes Shaul Kedem made to 2.5 (rev. 19732).
>
> I ended up with this patch:
> http://www.pasteall.org/5274/diff
>
> Although it works perfectly here, this change in
> [source/creator/CMakeLists.txt] copy python_d.dll to the build folder
> in both release and debug builds:
> + COMMAND copy /Y \"${WIN_LIBDIR}\\python\\lib\\python25_d.dll\"
> \"${TARGETDIR}\\\"
If you want to do that cross-platform (ok, it's for copying a windows-dll, but
anyway), you could use
${CMAKE_COMMAND} -E copy ...
or
${CMAKE_COMMAND} -E copy_if_different ...
(CMAKE_COMMAND contains the full path to the cmake which is used for
confuguring this project).
Alex
More information about the Bf-committers
mailing list