From 65487176e3b91314d74b53db17322cceecba3e86 Mon Sep 17 00:00:00 2001 From: "Marcus D. Hanwell" Date: Sat, 1 Aug 2009 13:43:06 -0400 Subject: [PATCH] Improved quoting of tests when added to the build. This fixes an issue where multiple versions of the Qt libraries are available, if the Qt library variable is not quoted an error was generated as only the first part 'optimized' was used by the create test macro. --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 70656de9a..39a9e834b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -158,7 +158,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) @@ -212,7 +212,7 @@ ei_add_test(alignedbox) ei_add_test(regression) ei_add_test(stdvector) if(QT4_FOUND) - ei_add_test(qtvector " " ${QT_QTCORE_LIBRARY}) + ei_add_test(qtvector " " "${QT_QTCORE_LIBRARY}") endif(QT4_FOUND) ei_add_test(sparse_vector) ei_add_test(sparse_basic)