From 8d7229b25fb82744182b7dc40d1a4868bf27e3e2 Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 6 Dec 2020 19:03:37 +0100 Subject: Windows: more double-quotes because of ';' in strings; debugging. GIT_SILENT --- modules/ECMAddTests.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/ECMAddTests.cmake b/modules/ECMAddTests.cmake index 5854130b..8d7297e9 100644 --- a/modules/ECMAddTests.cmake +++ b/modules/ECMAddTests.cmake @@ -99,8 +99,12 @@ function(ecm_add_test) else() # e.g. Linux set(PATHSEP ":") endif() - set(_plugin_path $ENV{QT_PLUGIN_PATH}) + set(_plugin_path "$ENV{QT_PLUGIN_PATH}") set_property(TEST ${_testname} PROPERTY ENVIRONMENT "QT_PLUGIN_PATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}${PATHSEP}${_plugin_path}") + if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") + get_property(_debug_env TEST ${_testname} PROPERTY ENVIRONMENT) + message("debugging: _plugin_path=${_plugin_path} property=${_debug_env}") + endif() endif() if (ARG_TARGET_NAME_VAR) set(${ARG_TARGET_NAME_VAR} "${_targetname}" PARENT_SCOPE) -- cgit v1.2.1