apply patch from Marcus Hanwell: Improved quoting of tests when added to the build

This commit is contained in:
Benoit Jacob
2009-08-02 15:09:34 +02:00
parent 21f686846b
commit cd49780143
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ macro(ei_add_test testname)
string(STRIP "${ARGV2}" ARGV2_stripped)
string(LENGTH "${ARGV2_stripped}" ARGV2_stripped_length)
if(${ARGV2_stripped_length} GREATER 0)
target_link_libraries(${targetname} ${ARGV2})
target_link_libraries(${targetname} "${ARGV2}")
endif(${ARGV2_stripped_length} GREATER 0)
endif(${ARGC} GREATER 2)