CMake: Use build directory as ctest working directory

Use existing variable for VS working directory.
This commit is contained in:
Maarten Bent 2021-01-16 01:34:03 +01:00
parent 226a3de596
commit 6dfb96c075

View File

@ -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()