|
From: <ai...@us...> - 2010-01-04 00:28:20
|
Revision: 10734
http://plplot.svn.sourceforge.net/plplot/?rev=10734&view=rev
Author: airwin
Date: 2010-01-04 00:27:58 +0000 (Mon, 04 Jan 2010)
Log Message:
-----------
There is a non-VERBATIM custom command issue with CMake where the first part
of the command is surrounded by quotes if there is an embedded blank. Work
around this issue by using an initial part of the command that does nothing
and which has no embedded blanks. The Linux result is that the embedded
blanks in the remaining parts of the command are replaced by escaped blanks,
i.e., "\ ", which works well. This needs to be tested on other platforms
for the case where any/all of the source, build, or install trees have
embedded blanks in the top-level directory name.
N.B. I cannot use VERBATIM custom commands here since they have a bug where
all parts of the command that are variable assignments that contain an
embedded blank are surrounded by quotes. See further discussion on the
CMake list as of 2010-01-03.
Modified Paths:
--------------
trunk/examples/CMakeLists.txt
Modified: trunk/examples/CMakeLists.txt
===================================================================
--- trunk/examples/CMakeLists.txt 2010-01-04 00:16:18 UTC (rev 10733)
+++ trunk/examples/CMakeLists.txt 2010-01-04 00:27:58 UTC (rev 10734)
@@ -458,7 +458,7 @@
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/x01${suffix}.psc
COMMAND ${CMAKE_COMMAND} -E echo "Generate ${language} results for psc device"
- COMMAND ${environment} ${custom_test_command} --verbose --front-end=${language} --device=psc
+ COMMAND DUMMY= ${environment} ${custom_test_command} --verbose --front-end=${language} --device=psc
DEPENDS ${compare_file_depends_${language}}
)
add_custom_target(test_${language}_psc
@@ -534,7 +534,7 @@
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/x01c${index}.${device}
COMMAND ${CMAKE_COMMAND} -E echo "Generate C results for ${device} file device"
- COMMAND ${custom_env} ${custom_test_command} --verbose --front-end=c --device=${device}
+ COMMAND DUMMY= ${custom_env} ${custom_test_command} --verbose --front-end=c --device=${device}
DEPENDS
${file_device_depends_${device}}
)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|