From 4df97c84e177542cbfd7316836bfd81e0c6ff51f Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Wed, 4 Sep 2013 16:37:05 +0100 Subject: [PATCH] On Windows, build the updater with UNICODE and _UNICODE not set FileUtils and DirIterator currently assume that the Windows file manipulation calls accept a char* MD-19678 #time 10m --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f79a709..2232a85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ include_directories(external/win32cpp/include) # so that the executable can function standalone set(CMAKE_CXX_FLAGS_RELEASE "/MT /O2 /Ob2 /D NDEBUG") set(CMAKE_C_FLAGS_RELEASE "/MT /O2 /Ob2 /D NDEBUG") +remove_definitions(-DUNICODE -D_UNICODE) else() # optimize for reduced code size