From 863cc6a15500317ce0d89ba5232e72bb995e4cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Salim?= Date: Thu, 1 Oct 2020 11:23:14 +0200 Subject: [PATCH] Add WORKING_DIRECTORY to CatchAddTests.cmake commands --- extras/CatchAddTests.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extras/CatchAddTests.cmake b/extras/CatchAddTests.cmake index 82c986df..a174c7d4 100644 --- a/extras/CatchAddTests.cmake +++ b/extras/CatchAddTests.cmake @@ -36,6 +36,7 @@ execute_process( COMMAND ${TEST_EXECUTOR} "${TEST_EXECUTABLE}" ${spec} --list-tests --verbosity quiet OUTPUT_VARIABLE output RESULT_VARIABLE result + WORKING_DIRECTORY "${TEST_WORKING_DIR}" ) if(NOT ${result} EQUAL 0) message(FATAL_ERROR @@ -52,6 +53,7 @@ execute_process( COMMAND ${TEST_EXECUTOR} "${TEST_EXECUTABLE}" ${spec} --list-reporters OUTPUT_VARIABLE reporters_output RESULT_VARIABLE reporters_result + WORKING_DIRECTORY "${TEST_WORKING_DIR}" ) if(${reporters_result} EQUAL 0) message(WARNING