From 6dfb96c075536bf865a13245e624a3b3a9865d8a Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sat, 16 Jan 2021 01:34:03 +0100 Subject: [PATCH] CMake: Use build directory as ctest working directory Use existing variable for VS working directory. --- build/cmake/functions.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/cmake/functions.cmake b/build/cmake/functions.cmake index 0efba28ba6..828f0ad7d0 100644 --- a/build/cmake/functions.cmake +++ b/build/cmake/functions.cmake @@ -814,13 +814,13 @@ function(wx_add name group) FOLDER ${APP_FOLDER} ) set_target_properties(${target_name} PROPERTIES - VS_DEBUGGER_WORKING_DIRECTORY "${wxOUTPUT_DIR}/${wxCOMPILER_PREFIX}${wxARCH_SUFFIX}_${lib_suffix}" + VS_DEBUGGER_WORKING_DIRECTORY "${wxOUTPUT_DIR}/${wxPLATFORM_LIB_DIR}" ) if(group STREQUAL Tests) add_test(NAME ${target_name} COMMAND ${target_name} - WORKING_DIRECTORY ${wxSOURCE_DIR}/tests) + WORKING_DIRECTORY "${wxOUTPUT_DIR}/${wxPLATFORM_LIB_DIR}") endif() endfunction()