You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2013/05/16 19:50:17 UTC

svn commit: r1483468 - /qpid/branches/0.22/qpid/cpp/bindings/qpid/perl/CMakeLists.txt

Author: mcpierce
Date: Thu May 16 17:50:16 2013
New Revision: 1483468

URL: http://svn.apache.org/r1483468
Log:
QPID-4781: Fix the Perl bindings for CMake < 2.8

Modified:
    qpid/branches/0.22/qpid/cpp/bindings/qpid/perl/CMakeLists.txt

Modified: qpid/branches/0.22/qpid/cpp/bindings/qpid/perl/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/branches/0.22/qpid/cpp/bindings/qpid/perl/CMakeLists.txt?rev=1483468&r1=1483467&r2=1483468&view=diff
==============================================================================
--- qpid/branches/0.22/qpid/cpp/bindings/qpid/perl/CMakeLists.txt (original)
+++ qpid/branches/0.22/qpid/cpp/bindings/qpid/perl/CMakeLists.txt Thu May 16 17:50:16 2013
@@ -35,8 +35,22 @@ include_directories(${PERL_INCLUDE_PATH}
 ##----------------------------------
 ## Install the complete Perl binding
 ##----------------------------------
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcqpid_perl.so
-              ${CMAKE_CURRENT_BINARY_DIR}/cqpid_perl.pm
+## install the Perl library separate, since we need to rename the film if
+# it's coming from a version of Cmake < 2.8
+if ((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8))
+  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cqpid_perl.so
+        DESTINATION ${PERL_PFX_ARCHLIB}
+        COMPONENT ${QPID_COMPONENT_CLIENT}
+        )
+else()
+  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcqpid_perl.so
+        RENAME cqpid_perl.so
+        DESTINATION ${PERL_PFX_ARCHLIB}
+        COMPONENT ${QPID_COMPONENT_CLIENT}
+        )
+endif ((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8))
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cqpid_perl.pm
               ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE
               ${CMAKE_CURRENT_SOURCE_DIR}/Makefile.PL
         DESTINATION ${PERL_PFX_ARCHLIB}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org