aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Marcus D. Hanwell <marcus@cryos.org>2009-08-21 14:04:17 -0400
committerGravatar Marcus D. Hanwell <marcus@cryos.org>2009-08-21 14:04:17 -0400
commitef582933c102fe514a161ccce950b77b403e7f2c (patch)
tree7c0941174d313543719071b8013bebd357fbd8c3 /cmake
parent2f0b4e1abc6b105434fcb85df2461a37a810172b (diff)
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.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/EigenTesting.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake
index ef36d2067..571774787 100644
--- a/cmake/EigenTesting.cmake
+++ b/cmake/EigenTesting.cmake
@@ -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)