summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-17 13:49:54 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-03-17 13:49:54 (GMT)
commit5a21cbc96bb5905638cca978f5996c60b7f940fa (patch)
tree3414f121b60210056d01047a0f25ef286fbb7400 /Source/QtDialog
parent223b05a80c3a1b237edea8d7a404fead5f6c6c61 (diff)
parentee8cef8725486519a7ab47eb16208d4d64e0ab99 (diff)
downloadCMake-5a21cbc96bb5905638cca978f5996c60b7f940fa.zip
CMake-5a21cbc96bb5905638cca978f5996c60b7f940fa.tar.gz
CMake-5a21cbc96bb5905638cca978f5996c60b7f940fa.tar.bz2
Merge topic 'unicode-vs-projects'
ee8cef87 Encoding: If configured, write Visual Studio project files as UTF-8. 91fd99b8 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 4e0bb50..07a50b9 100644
--- a/Source/QtDialog/CMakeLists.txt
+++ b/Source/QtDialog/CMakeLists.txt
@@ -59,11 +59,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 1b04a00..82fa3a3 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::setCodecForLocale(utf8_codec);
#endif