From: Simon McVittie Date: Mon, 21 Jan 2019 20:25:09 +0000 (+0000) Subject: cmake: Set working directory to be a native path X-Git-Tag: dbus-1.13.10~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=269bb1dcf2b211274abe24a441bb2df3a72e71ec;p=thirdparty%2Fdbus.git cmake: Set working directory to be a native path If we're cross-compiling for Windows on Unix, CTest needs to chdir() to the native Unix path. Signed-off-by: Simon McVittie --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e7d091901..568a5da17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -490,7 +490,7 @@ if (DBUS_BUILD_TESTS) # This happens to be the same as DBUS_TEST_EXEC, but its meaning is # different, and it has no direct Autotools equivalent (Autotools # tests automatically get their own ${builddir} as working directory). - set(DBUS_TEST_WORKING_DIR ${Z_DRIVE_IF_WINE}${CMAKE_RUNTIME_OUTPUT_DIRECTORY}${IDE_BIN}) + set(DBUS_TEST_WORKING_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}${IDE_BIN}) set(DBUS_TEST_DATA ${Z_DRIVE_IF_WINE}${CMAKE_BINARY_DIR}/test/data) set(DBUS_TEST_DAEMON ${Z_DRIVE_IF_WINE}${CMAKE_RUNTIME_OUTPUT_DIRECTORY}${IDE_BIN}/dbus-daemon${EXEEXT}) set(DBUS_TEST_DBUS_LAUNCH ${Z_DRIVE_IF_WINE}${CMAKE_RUNTIME_OUTPUT_DIRECTORY}${IDE_BIN}/dbus-launch${EXEEXT})