summaryrefslogtreecommitdiff
path: root/Tests/Plugin
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-29 08:19:20 -0400
committerBrad King <brad.king@kitware.com>2019-03-29 08:19:20 -0400
commit15be06a5ecad09b08c9e81aa5712173be3f88f72 (patch)
treef357a76c42a6438ec0bbab5d2f1111eb5e621e66 /Tests/Plugin
parent24da7da68657c7c719e908f519c0f94da3a15701 (diff)
downloadcmake-15be06a5ecad09b08c9e81aa5712173be3f88f72.tar.gz
Tests: Fix Plugin test for international characters on Windows
Build KWSys with `CP_UTF8` internal encoding so that we can dynamically load modules by absolute paths that contain international characters. This is needed now that KWSys DynamicLoader uses KWSys Encoding instead of hard-coding `CP_UTF8` itself.
Diffstat (limited to 'Tests/Plugin')
-rw-r--r--Tests/Plugin/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/Plugin/CMakeLists.txt b/Tests/Plugin/CMakeLists.txt
index 227d990af2..8e8fa0759b 100644
--- a/Tests/Plugin/CMakeLists.txt
+++ b/Tests/Plugin/CMakeLists.txt
@@ -15,6 +15,7 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${Plugin_BINARY_DIR}/lib/static)
set(KWSYS_NAMESPACE kwsys)
set(KWSYS_HEADER_ROOT ${Plugin_BINARY_DIR}/include)
set(KWSYS_USE_DynamicLoader 1)
+set(KWSYS_ENCODING_DEFAULT_CODEPAGE CP_UTF8)
add_subdirectory(${Plugin_SOURCE_DIR}/../../Source/kwsys src/kwsys)
# Configure the location of plugins.