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
This commit is contained in:
Robert Knight 2013-09-04 16:37:05 +01:00
parent 6a56b5cddc
commit 4df97c84e1

View file

@ -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