aboutsummaryrefslogtreecommitdiff
path: root/modules/ECMAddTests.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ECMAddTests.cmake')
-rw-r--r--modules/ECMAddTests.cmake6
1 files changed, 5 insertions, 1 deletions
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)