From 3bbf77fa01faffe5c430991b73a177ab1966e036 Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Fri, 28 Dec 2018 17:44:51 +0530 Subject: Specify WORKING_DIRECTORY to execute_process() in GoogleTestAddTests --- Modules/GoogleTestAddTests.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/GoogleTestAddTests.cmake b/Modules/GoogleTestAddTests.cmake index 5a4bdca..4abbbec 100644 --- a/Modules/GoogleTestAddTests.cmake +++ b/Modules/GoogleTestAddTests.cmake @@ -30,6 +30,7 @@ if(NOT EXISTS "${TEST_EXECUTABLE}") endif() execute_process( COMMAND ${TEST_EXECUTOR} "${TEST_EXECUTABLE}" --gtest_list_tests + WORKING_DIRECTORY "${TEST_WORKING_DIR}" TIMEOUT ${TEST_DISCOVERY_TIMEOUT} OUTPUT_VARIABLE output RESULT_VARIABLE result -- cgit v0.12