From 595c70c32fd98bb8676195d8e847d3c2878c2485 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Fri, 15 Apr 2011 17:00:07 -0300 Subject: Avoid delete file from source dir. --- PySide/QtDeclarative/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'PySide') diff --git a/PySide/QtDeclarative/CMakeLists.txt b/PySide/QtDeclarative/CMakeLists.txt index 01cf87798..170c0e9f3 100644 --- a/PySide/QtDeclarative/CMakeLists.txt +++ b/PySide/QtDeclarative/CMakeLists.txt @@ -1,6 +1,9 @@ project(QtDeclarative) -set(QtDeclarative_registerType "${CMAKE_CURRENT_SOURCE_DIR}/pysideqmlregistertype.cpp") +EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/pysideqmlregistertype.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/PySide/QtDeclarative/pysideqmlregistertype.cpp") + +set(QtDeclarative_registerType "${CMAKE_CURRENT_BINARY_DIR}/PySide/QtDeclarative/pysideqmlregistertype.cpp") set(QtDeclarative_SRC ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtDeclarative/qdeclarativecomponent_wrapper.cpp -- cgit v1.2.3