summaryrefslogtreecommitdiff
path: root/cpp/bindings/qmf2/python
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2013-04-02 14:56:29 +0000
committerAlan Conway <aconway@apache.org>2013-04-02 14:56:29 +0000
commite5eaa87abca99d79d962661bb93c61f2f586f2cd (patch)
tree140f8a9c43688890c057e44974c3ad756bd62c32 /cpp/bindings/qmf2/python
parentcbc868c5be57a582abc28dd84ca70411acd632e9 (diff)
downloadqpid-python-e5eaa87abca99d79d962661bb93c61f2f586f2cd.tar.gz
NO-JIRA: cmake: Fix use of file(copy) command, which is not available in cmake 2.6
Use configure_file(COPYONLY) instead. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1463578 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qmf2/python')
-rw-r--r--cpp/bindings/qmf2/python/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/bindings/qmf2/python/CMakeLists.txt b/cpp/bindings/qmf2/python/CMakeLists.txt
index 57d9ab0fcb..851a33f4e4 100644
--- a/cpp/bindings/qmf2/python/CMakeLists.txt
+++ b/cpp/bindings/qmf2/python/CMakeLists.txt
@@ -29,8 +29,8 @@ swig_link_libraries(cqmf2_python qmf2 ${PYTHON_LIBRARIES})
set_source_files_properties(${swig_generated_file_fullname} PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing -I${PYTHON_INCLUDE_PATH} -I${qpid-cpp_SOURCE_DIR}/include")
# Move source into binary dir so compiled .pyc,pyo files will be in binary dir.
-file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmf2.py"
- DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
+# NOTE: not using the file(COPY) command as it is not available in cmake 2.6
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/qmf2.py" "${CMAKE_CURRENT_BINARY_DIR}" COPYONLY)
# Python compile the modules
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m py_compile cqmf2.py