From 51c13754b38be57cf51ed2c4592bb89f0648dc61 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 7 Dec 2020 13:03:39 +0100 Subject: Another attempt to fix QT_PLUGIN_PATH for tests on Windows --- modules/ECMAddTests.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/ECMAddTests.cmake') diff --git a/modules/ECMAddTests.cmake b/modules/ECMAddTests.cmake index 8d7297e9..0136bb64 100644 --- a/modules/ECMAddTests.cmake +++ b/modules/ECMAddTests.cmake @@ -95,7 +95,8 @@ function(ecm_add_test) ecm_mark_as_test(${_targetname}) if (CMAKE_LIBRARY_OUTPUT_DIRECTORY) if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") - set(PATHSEP ";") + # https://stackoverflow.com/questions/59862894/how-do-i-make-a-list-in-cmake-with-the-semicolon-value + set(PATHSEP "\\\;") # Don't want cmake to treat it like a list else() # e.g. Linux set(PATHSEP ":") endif() -- cgit v1.2.1