|
From: <ai...@us...> - 2010-09-24 04:01:51
|
Revision: 11209
http://plplot.svn.sourceforge.net/plplot/?rev=11209&view=rev
Author: airwin
Date: 2010-09-24 04:01:45 +0000 (Fri, 24 Sep 2010)
Log Message:
-----------
Properly handle case of vacuous list of plsmem(a) related devices.
Modified Paths:
--------------
trunk/examples/python/CMakeLists.txt
Modified: trunk/examples/python/CMakeLists.txt
===================================================================
--- trunk/examples/python/CMakeLists.txt 2010-09-24 03:30:28 UTC (rev 11208)
+++ trunk/examples/python/CMakeLists.txt 2010-09-24 04:01:45 UTC (rev 11209)
@@ -189,11 +189,13 @@
if(PLSMEM_DEVICE_LIST)
string(REGEX REPLACE ";" "\", \"" PLSMEM_DEVICE_LIST "${PLSMEM_DEVICE_LIST}")
set(PLSMEM_DEVICE_LIST "[\"${PLSMEM_DEVICE_LIST}\"]")
- configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/test_plsmem.py.in
- ${CMAKE_CURRENT_BINARY_DIR}/test_plsmem.py
- )
+ else(PLSMEM_DEVICE_LIST)
+ set(PLSMEM_DEVICE_LIST "[]")
endif(PLSMEM_DEVICE_LIST)
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/test_plsmem.py.in
+ ${CMAKE_CURRENT_BINARY_DIR}/test_plsmem.py
+ )
set(PERM_SCRIPTS
OWNER_READ
@@ -204,6 +206,7 @@
WORLD_READ
WORLD_EXECUTE
)
+
install(FILES ${python_SCRIPTS} ${CMAKE_CURRENT_BINARY_DIR}/test_plsmem.py
DESTINATION ${DATA_DIR}/examples/python
PERMISSIONS ${PERM_SCRIPTS}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|