ln -s is not that reliable
authorDiane Trout <diane@caltech.edu>
Wed, 12 Apr 2006 01:02:48 +0000 (01:02 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 12 Apr 2006 01:02:48 +0000 (01:02 +0000)
ln throws an error if the file already exists, rm throws a file
if it doesn't exist, only cp works regardless of the start of the
python extensions existence status.

py/CMakeLists.txt

index 6c88db94440d347ddaf10f36dde3280b922659cb..c890cfa868c9f6e402aad74dd73fea0a0b1f312f 100644 (file)
@@ -18,8 +18,7 @@ FIND_PACKAGE(PythonInterp)
 
   ADD_LIBRARY(mussa MODULE ${SOURCES})
   ADD_CUSTOM_COMMAND(TARGET mussa 
-                     COMMAND rm mussa.so
-                     COMMAND ln -s libmussa.so mussa.so)
+                     COMMAND cp libmussa.so mussa.so)
   LINK_DIRECTORIES(${MUSSA_BINARY_DIR}/alg)
   TARGET_LINK_LIBRARIES(mussa 
                           mussa_core