qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcpie...@apache.org
Subject svn commit: r1417448 - /qpid/proton/trunk/proton-c/bindings/perl/CMakeLists.txt
Date Wed, 05 Dec 2012 14:44:17 GMT
Author: mcpierce
Date: Wed Dec  5 14:44:17 2012
New Revision: 1417448

URL: http://svn.apache.org/viewvc?rev=1417448&view=rev
Log:
PROTON-177: Perl bindings honor the install prefix.

Modified:
    qpid/proton/trunk/proton-c/bindings/perl/CMakeLists.txt

Modified: qpid/proton/trunk/proton-c/bindings/perl/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/perl/CMakeLists.txt?rev=1417448&r1=1417447&r2=1417448&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/perl/CMakeLists.txt (original)
+++ qpid/proton/trunk/proton-c/bindings/perl/CMakeLists.txt Wed Dec  5 14:44:17 2012
@@ -19,6 +19,13 @@
 
 include_directories("${PERL_INCLUDE_PATH}")
 
+# honor the install prefix
+execute_process(COMMAND ${PERL_EXECUTABLE} "-V::prefix:"
+                OUTPUT_VARIABLE QPERL_PREFIX
+                OUTPUT_STRIP_TRAILING_WHITESPACE)
+string(REGEX REPLACE "'(.*)'" "\\1" PERL_PREFIX ${QPERL_PREFIX})
+string(REPLACE ${PERL_PREFIX} ${CMAKE_INSTALL_PREFIX} PERL_PFX_ARCHLIB ${PERL_ARCHLIB})
+
 # Need to pass in the same compiler flags used to build Perl itself
 execute_process(COMMAND perl -MConfig -e "print \$Config{ccflags}"
                 OUTPUT_VARIABLE PERLCFLAGS)
@@ -29,6 +36,6 @@ swig_link_libraries(cproton_perl ${BINDI
 
 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcproton_perl.so
               ${CMAKE_CURRENT_BINARY_DIR}/cproton_perl.pm
-        DESTINATION ${PERL_ARCHLIB}
+        DESTINATION ${PERL_PFX_ARCHLIB}
         COMPONENT Perl)
 



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


Mime
View raw message