aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-20 01:13:38 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-20 01:13:38 +0000
commit21ab65e4b3b133a6550ec74ac76a0a629d07f104 (patch)
treec28424ed7fcb53775b566f446b613abd061eee7d /test
parentebf906a23a9c4a92f8ea3a8b783f0070ae3f87f3 (diff)
fix nasty little bug in ei_add_test
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 58ab73525..fd39dc82e 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -131,7 +131,9 @@ macro(ei_add_test testname)
target_link_libraries(${targetname} ${EXTERNAL_LIBS})
if(${ARGC} GREATER 2)
- target_link_libraries(${targetname} ${ARGV2})
+ if(ARGV2)
+ target_link_libraries(${targetname} ${ARGV2})
+ endif(ARGV2)
endif(${ARGC} GREATER 2)
if(WIN32)