|
From: <ai...@us...> - 2009-08-25 22:23:09
|
Revision: 10338
http://plplot.svn.sourceforge.net/plplot/?rev=10338&view=rev
Author: airwin
Date: 2009-08-25 22:22:56 +0000 (Tue, 25 Aug 2009)
Log Message:
-----------
copy_if_different.
Modified Paths:
--------------
trunk/examples/python/CMakeLists.txt
Modified: trunk/examples/python/CMakeLists.txt
===================================================================
--- trunk/examples/python/CMakeLists.txt 2009-08-25 22:20:47 UTC (rev 10337)
+++ trunk/examples/python/CMakeLists.txt 2009-08-25 22:22:56 UTC (rev 10338)
@@ -162,9 +162,7 @@
PERMISSIONS ${PERM_DATA}
)
-if(BUILD_TEST AND
- NOT CMAKE_CURRENT_BINARY_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}"
- )
+if(BUILD_TEST)
# equivalent to install commands but at "make" time rather than
# "make install" time, to the build tree if different than the source
# tree, and skipping plplot_python_start.py since it is already
@@ -178,15 +176,15 @@
)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${file}
- COMMAND ${CMAKE_COMMAND} -E copy
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_SOURCE_DIR}/${file} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file}
)
endforeach(file ${python_SCRIPTS} ${python_DATA})
add_custom_target(python_examples ALL DEPENDS ${command_DEPENDS})
-endif(BUILD_TEST AND
- NOT CMAKE_CURRENT_BINARY_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}"
- )
+ set_property(GLOBAL PROPERTY TARGETS_examples_python python_examples
+ _plplotcmodule plplot_widgetmodule)
+endif(BUILD_TEST)
set(python_location1 ${CMAKE_SOURCE_DIR}/bindings/python)
set(python_location2 ${CMAKE_BINARY_DIR}/bindings/python)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|