aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2020-12-06 19:03:37 +0100
committerDavid Faure <faure@kde.org>2020-12-06 19:03:37 +0100
commit8d7229b25fb82744182b7dc40d1a4868bf27e3e2 (patch)
tree569b61ffca4b25b5cf0cc8dd00ff987242ee4d6e
parent59f1e891fa473754c15991c87c006cf145b0f1e3 (diff)
downloadextra-cmake-modules-8d7229b25fb82744182b7dc40d1a4868bf27e3e2.tar.gz
extra-cmake-modules-8d7229b25fb82744182b7dc40d1a4868bf27e3e2.tar.bz2
Windows: more double-quotes because of ';' in strings; debugging.
GIT_SILENT
-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)