From 534d7f0fb6744bc1c1b9ad925e0e808b64bf9742 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 4 Mar 2010 16:14:16 +0000 Subject: [PATCH] Change cmake script to actually use the input param rather than ARGV. --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index be5bec486..8bd473a88 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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) add_executable(${TEST_NAME} - ${ARGV0} + ${test_source} main.cpp ) target_link_libraries(${TEST_NAME} gmock clementine_lib mocks)