Change cmake script to actually use the input param rather than ARGV.

This commit is contained in:
John Maguire 2010-03-04 16:14:16 +00:00
parent 1f23f2e64d
commit 534d7f0fb6
1 changed files with 2 additions and 2 deletions

View File

@ -47,9 +47,9 @@ add_custom_target(test
# Given a file foo_test.cpp, creates a target foo_test and adds it to the test target.
macro(add_test_file test_source)
get_filename_component(TEST_NAME ${ARGV0} NAME_WE)
get_filename_component(TEST_NAME ${test_source} NAME_WE)
target_link_libraries(${TEST_NAME} gmock clementine_lib mocks)