summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNehal J Wani <nehaljw.kkd1@gmail.com>2018-12-28 12:14:51 (GMT)
committerNehal J Wani <nehaljw.kkd1@gmail.com>2018-12-28 12:14:51 (GMT)
commit3bbf77fa01faffe5c430991b73a177ab1966e036 (patch)
treeba48efa875830c7fbe571506a93e59d0488db770 /Modules
parentf564f65ff551932aa17a9b4511cf66baf3d28f47 (diff)
downloadCMake-3bbf77fa01faffe5c430991b73a177ab1966e036.zip
CMake-3bbf77fa01faffe5c430991b73a177ab1966e036.tar.gz
CMake-3bbf77fa01faffe5c430991b73a177ab1966e036.tar.bz2
Specify WORKING_DIRECTORY to execute_process() in GoogleTestAddTests
Diffstat (limited to 'Modules')
-rw-r--r--Modules/GoogleTestAddTests.cmake1
1 files changed, 1 insertions, 0 deletions
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