From 5f04bb068edd8a26f57162b693fa32b10c793fa8 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 2 Apr 2013 14:56:29 +0000 Subject: 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@1463578 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/bindings/qmf/python/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'qpid/cpp/bindings/qmf/python') diff --git a/qpid/cpp/bindings/qmf/python/CMakeLists.txt b/qpid/cpp/bindings/qmf/python/CMakeLists.txt index b6583b97c1..14ba888c78 100644 --- a/qpid/cpp/bindings/qmf/python/CMakeLists.txt +++ b/qpid/cpp/bindings/qmf/python/CMakeLists.txt @@ -33,9 +33,8 @@ set_source_files_properties(${swig_generated_file_fullname} PROPERTIES COMPILE_F ##------------------------------------ # Copy py source to binary dir so pyc/pyo will be generated in binary dir. -file(COPY - "${CMAKE_CURRENT_SOURCE_DIR}/qmf.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}/qmf.py" "${CMAKE_CURRENT_BINARY_DIR}" COPYONLY) # Python compile the modules install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m py_compile qmfengine.py -- cgit v1.2.1