From 258ea3ea02d0c63d73cc8d1cbb318dbc3445d9f5 Mon Sep 17 00:00:00 2001 From: "Marcus D. Hanwell" Date: Fri, 21 Aug 2009 14:08:53 -0400 Subject: [PATCH] Proper fix for linking to the Qt libraries (and others) My initial fix was incorrect, the libraries must be quoted when being passed to the add test macro, but must be unquoted when passed to the target_link_libraries function. --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5f48da115..dda8ea8e2 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)