summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2014-03-14 14:47:37 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2014-03-14 14:48:18 (GMT)
commit91fd99b86532dbf35d8c7396654b9beac058c8f3 (patch)
tree5a1df0250f91360185f5087386a0906e6aa5debb /Source/QtDialog
parent82a7d54cfe75c399b66c888acfcb5ddb15af547b (diff)
downloadCMake-91fd99b86532dbf35d8c7396654b9beac058c8f3.zip
CMake-91fd99b86532dbf35d8c7396654b9beac058c8f3.tar.gz
CMake-91fd99b86532dbf35d8c7396654b9beac058c8f3.tar.bz2
Encoding: Provide option to configure CMake to use UTF-8 encoding.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeLists.txt5
-rw-r--r--Source/QtDialog/CMakeSetup.cxx2
2 files changed, 1 insertions, 6 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt
index 0dd01d8..4308a4d 100644
--- a/Source/QtDialog/CMakeLists.txt
+++ b/Source/QtDialog/CMakeLists.txt
@@ -55,11 +55,6 @@ else()
endif()
endif()
-
-if(WIN32 AND KWSYS_ENCODING_DEFAULT_CODEPAGE MATCHES CP_UTF8)
- add_definitions(-DKWSYS_CP_UTF8)
-endif()
-
set(SRCS
AddCacheEntry.cxx
AddCacheEntry.h
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index 995929e..e37bd9d 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -79,7 +79,7 @@ int main(int argc, char** argv)
QApplication app(argc, argv);
-#if defined(KWSYS_CP_UTF8)
+#if defined(CMAKE_ENCODING_UTF8)
QTextCodec* utf8_codec = QTextCodec::codecForName("UTF-8");
QTextCodec::setCodecForCStrings(utf8_codec);
QTextCodec::setCodecForLocale(utf8_codec);