Skip to content
Snippets Groups Projects
Commit 83f7f3dd authored by David Gobbi's avatar David Gobbi Committed by Kitware Robot
Browse files

Merge topic 'msvc-use-utf8'


55118abd Use /utf-8 option when compiling with MSVC

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Tested-by: default avatarbuildbot <buildbot@kitware.com>
Reviewed-by: default avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !10194
parents 5e47b638 55118abd
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,12 @@ if(MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /bigobj")
endif()
# Use /utf-8 so that MSVC uses utf-8 in source files and object files
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8")
endif()
#-----------------------------------------------------------------------------
# Add compiler flags VTK needs to work on this platform. This must be
# done after the call to CMAKE_EXPORT_BUILD_SETTINGS, but before any
......
## Apply utf-8 option to MSVC builds
When building with Visual C++, use the /utf-8 option to force
source code to be read as utf-8 instead of defaulting to the
system code page specified by the locale settings.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment