[vlmc-devel] CMake: Fix copying on Mac OS

Rohit Yadav git at videolan.org
Mon Feb 7 20:34:04 CET 2011


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Tue Feb  8 01:16:36 2011 +0530| [c448b1d4f9fda84844f3fb85453bd73a29a4b798] | committer: Rohit Yadav

CMake: Fix copying on Mac OS

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=c448b1d4f9fda84844f3fb85453bd73a29a4b798
---

 src/CMakeLists.txt |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7c43df9..b92b329 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -385,10 +385,11 @@ IF(UNIX)
 ENDIF(UNIX)
 
 IF( APPLE )
+    SET(CONTRIBS_DIR ${CMAKE_SOURCE_DIR}/contribs/)
     ADD_CUSTOM_COMMAND(
         TARGET vlmc
         POST_BUILD
-        COMMAND cp -r ${CMAKE_SOURCE_DIR}/contribs/{include, lib, plugins} ${CMAKE_CURRENT_BINARY_DIR}/../bin/vlmc.app/Contents/MacOS
+        COMMAND cp -r ${CONTRIBS_DIR}/include ${CONTRIBS_DIR}/lib ${CONTRIBS_DIR}/plugins ${CMAKE_CURRENT_BINARY_DIR}/../bin/vlmc.app/Contents/MacOS
     )
     ADD_CUSTOM_COMMAND(
         TARGET vlmc



More information about the Vlmc-devel mailing list