aboutsummaryrefslogtreecommitdiff
path: root/modules/ECMAddTests.cmake
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2020-12-07 13:03:39 +0100
committerDavid Faure <faure@kde.org>2020-12-07 13:03:39 +0100
commit51c13754b38be57cf51ed2c4592bb89f0648dc61 (patch)
treec056835f7e78e411e26b18c8e75d36761d68a51b /modules/ECMAddTests.cmake
parent8d7229b25fb82744182b7dc40d1a4868bf27e3e2 (diff)
downloadextra-cmake-modules-51c13754b38be57cf51ed2c4592bb89f0648dc61.tar.gz
extra-cmake-modules-51c13754b38be57cf51ed2c4592bb89f0648dc61.tar.bz2
Another attempt to fix QT_PLUGIN_PATH for tests on Windows
Diffstat (limited to 'modules/ECMAddTests.cmake')
-rw-r--r--modules/ECMAddTests.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/ECMAddTests.cmake b/modules/ECMAddTests.cmake
index 8d7297e9..0136bb64 100644
--- a/modules/ECMAddTests.cmake
+++ b/modules/ECMAddTests.cmake
@@ -95,7 +95,8 @@ function(ecm_add_test)
ecm_mark_as_test(${_targetname})
if (CMAKE_LIBRARY_OUTPUT_DIRECTORY)
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
- set(PATHSEP ";")
+ # https://stackoverflow.com/questions/59862894/how-do-i-make-a-list-in-cmake-with-the-semicolon-value
+ set(PATHSEP "\\\;") # Don't want cmake to treat it like a list
else() # e.g. Linux
set(PATHSEP ":")
endif()