We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac490f1 commit 8ca2e97Copy full SHA for 8ca2e97
CMakeLists.txt
@@ -35,8 +35,13 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
35
# Options and settings
36
#-------------------------------------------------------------------------------
37
38
+ # MSVC-specific compiler configuration
39
if (MSVC)
40
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHs-c- /GR-")
41
+ # Enable UTF-8 support for source files and string literals. This is
42
+ # required by dependencies like fmt library.
43
+ string(APPEND CMAKE_CXX_FLAGS " /utf-8")
44
+ string(APPEND CMAKE_C_FLAGS " /utf-8")
45
else ()
46
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-rtti")
47
endif ()
0 commit comments