Minor change in src/CMakeLists.txt to see if a unit test needs she library

This commit is contained in:
David Capello 2014-04-12 12:29:55 -03:00
parent 71b7000c8a
commit 852aba87f8

View File

@ -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()