]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: Set working directory to be a native path
authorSimon McVittie <smcv@collabora.com>
Mon, 21 Jan 2019 20:25:09 +0000 (20:25 +0000)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 22 Jan 2019 08:58:28 +0000 (09:58 +0100)
If we're cross-compiling for Windows on Unix, CTest needs to chdir() to
the native Unix path.

Signed-off-by: Simon McVittie <smcv@collabora.com>
CMakeLists.txt

index e7d0919014e94a41a86dc85634d081631328cb57..568a5da170911eef286f3c58718cebf7445a7aa9 100644 (file)
@@ -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})