From 59f1e891fa473754c15991c87c006cf145b0f1e3 Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 6 Dec 2020 18:01:48 +0100 Subject: Windows: fix QT_PLUGIN_PATH for tests by adding double-quotes Otherwise the string (with ';' in it) is parsed as a list by cmake. --- modules/ECMAddTests.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ECMAddTests.cmake') diff --git a/modules/ECMAddTests.cmake b/modules/ECMAddTests.cmake index 8091ec46..5854130b 100644 --- a/modules/ECMAddTests.cmake +++ b/modules/ECMAddTests.cmake @@ -100,7 +100,7 @@ function(ecm_add_test) set(PATHSEP ":") endif() set(_plugin_path $ENV{QT_PLUGIN_PATH}) - set_property(TEST ${_testname} PROPERTY ENVIRONMENT QT_PLUGIN_PATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}${PATHSEP}${_plugin_path}) + set_property(TEST ${_testname} PROPERTY ENVIRONMENT "QT_PLUGIN_PATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}${PATHSEP}${_plugin_path}") endif() if (ARG_TARGET_NAME_VAR) set(${ARG_TARGET_NAME_VAR} "${_targetname}" PARENT_SCOPE) -- cgit v1.2.1