From 852aba87f89eb6187c3e0b6c911c633e2f5fe366 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 12 Apr 2014 12:29:55 -0300 Subject: [PATCH] Minor change in src/CMakeLists.txt to see if a unit test needs she library --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cdcca3fc1..e3df85c59 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -218,8 +218,8 @@ function(find_unittests dir dependencies) endif() # See if the test is linked with "she" library. - string(REGEX MATCH "she" link_with_she ${ARGV}) - if (link_with_she STREQUAL "she") + list(FIND dependencies she link_with_she) + if(link_with_she) set(extra_definitions -DLINKED_WITH_SHE) endif()