wzdftpd (0.8.3-6.1) 60_cmake_perl_dynaloader

Summary

 modules/perl/CMakeLists.txt |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

    
download this patch

Patch contents

Index: wzdftpd/modules/perl/CMakeLists.txt
===================================================================
--- wzdftpd.orig/modules/perl/CMakeLists.txt	2009-03-10 14:40:33.000000000 +0100
+++ wzdftpd/modules/perl/CMakeLists.txt	2009-03-10 14:41:03.000000000 +0100
@@ -36,11 +36,13 @@
     MACRO_ADD_LINK_FLAGS(libwzd_perl "${PERL_EXTRA_LD_FLAGS}")
   ENDIF(PERL_EXTRA_LD_FLAGS)
 
-  ADD_CUSTOM_TARGET(libDynaLoader.a COMMAND ${CMAKE_COMMAND} -E copy_if_different
-    ${PERL_DYNALOADER}
-    libDynaLoader.a)
-  ADD_DEPENDENCIES(libwzd_perl libDynaLoader.a)
-  SET(perl_LIBS ${perl_LIBS} DynaLoader)
+  IF(PERL_DYNALOADER)
+    ADD_CUSTOM_TARGET(libDynaLoader.a COMMAND ${CMAKE_COMMAND} -E copy_if_different
+      ${PERL_DYNALOADER}
+      libDynaLoader.a)
+    ADD_DEPENDENCIES(libwzd_perl libDynaLoader.a)
+    SET(perl_LIBS ${perl_LIBS} DynaLoader)
+  ENDIF(PERL_DYNALOADER)
 ENDIF (NOT WIN32)
 
 IF(PERL_LIBRARY)