From be684446bd3c65c0341c0f406ff8b5e6faebbbd9 Mon Sep 17 00:00:00 2001 From: Pavel Kartavyy Date: Mon, 18 May 2015 15:18:25 +0300 Subject: [PATCH] cmake: force tests to run from source dir --- add.test.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add.test.cmake b/add.test.cmake index def64ab6cad..0585f0951d4 100644 --- a/add.test.cmake +++ b/add.test.cmake @@ -10,6 +10,6 @@ else() endif() macro (add_check target) - add_test(test_${target} ${target}) + add_test(NAME test_${target} COMMAND ${target} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) add_dependencies(check ${target}) endmacro (add_check) \ No newline at end of file