qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1573784 - /qpid/trunk/qpid/cpp/managementgen/CMakeLists.txt
Date Mon, 03 Mar 2014 22:29:31 GMT
Author: chug
Date: Mon Mar  3 22:29:30 2014
New Revision: 1573784

URL: http://svn.apache.org/r1573784
Log:
QPID-5589: Add option for suppressing qmf/site-package installation; replace windows path
separators before they are seen by cmake.

Modified:
    qpid/trunk/qpid/cpp/managementgen/CMakeLists.txt

Modified: qpid/trunk/qpid/cpp/managementgen/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/managementgen/CMakeLists.txt?rev=1573784&r1=1573783&r2=1573784&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/managementgen/CMakeLists.txt (original)
+++ qpid/trunk/qpid/cpp/managementgen/CMakeLists.txt Mon Mar  3 22:29:30 2014
@@ -16,19 +16,25 @@
 # specific language governing permissions and limitations
 # under the License.
 #
-project(qpidc-qmfgen)
-cmake_minimum_required(VERSION 2.4.0 FATAL_ERROR)
+option(INSTALL_QMFGEN "Install QMF-GEN and QMF Python site-packages" ON)
 
-find_package(PythonInterp REQUIRED)
+if (INSTALL_QMFGEN)
+    project(qpidc-qmfgen)
+    cmake_minimum_required(VERSION 2.4.0 FATAL_ERROR)
 
-execute_process(COMMAND ${PYTHON_EXECUTABLE}
-                -c "from distutils.sysconfig import get_python_lib; print get_python_lib(False,
prefix='${CMAKE_INSTALL_PREFIX}')"
-                OUTPUT_VARIABLE PYTHON_SITEARCH_PACKAGES
-                OUTPUT_STRIP_TRAILING_WHITESPACE)
+    find_package(PythonInterp REQUIRED)
 
-install(PROGRAMS qmf-gen DESTINATION ${QPID_INSTALL_BINDIR}
-        COMPONENT ${QPID_COMPONENT_QMF})
-install(DIRECTORY qmfgen
-        DESTINATION ${PYTHON_SITEARCH_PACKAGES}
-        COMPONENT ${QPID_COMPONENT_QMF}
-        PATTERN ".svn" EXCLUDE PATTERN "*.pyc" EXCLUDE)
+    execute_process(COMMAND ${PYTHON_EXECUTABLE}
+                    -c "from distutils.sysconfig import get_python_lib; print get_python_lib(False,
prefix='${CMAKE_INSTALL_PREFIX}').replace('\\\\', '/')"
+                    OUTPUT_VARIABLE PYTHON_SITEARCH_PACKAGES
+                    OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+    install(PROGRAMS qmf-gen DESTINATION ${QPID_INSTALL_BINDIR}
+            COMPONENT ${QPID_COMPONENT_QMF})
+    install(DIRECTORY qmfgen
+            DESTINATION ${PYTHON_SITEARCH_PACKAGES}
+            COMPONENT ${QPID_COMPONENT_QMF}
+            PATTERN ".svn" EXCLUDE PATTERN "*.pyc" EXCLUDE)
+else (INSTALL_QMFGEN)
+    message (STATUS "Skipping installing qmf-gen and qmf python site-packages")
+endif (INSTALL_QMFGEN)
\ No newline at end of file



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


Mime
View raw message