diff options
author | David Faure <faure@kde.org> | 2020-12-06 18:01:48 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2020-12-06 18:01:48 +0100 |
commit | 59f1e891fa473754c15991c87c006cf145b0f1e3 (patch) | |
tree | f617960b7dd8b71839670c6092410f5eed255a33 | |
parent | 22552a8a2758f54d5538b4967a8e433d972b27c0 (diff) | |
download | extra-cmake-modules-59f1e891fa473754c15991c87c006cf145b0f1e3.tar.gz extra-cmake-modules-59f1e891fa473754c15991c87c006cf145b0f1e3.tar.bz2 |
Windows: fix QT_PLUGIN_PATH for tests by adding double-quotes
Otherwise the string (with ';' in it) is parsed as a list by cmake.
-rw-r--r-- | modules/ECMAddTests.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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) |