mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
add /utf-8 flag for msvc
This commit is contained in:
parent
9fe79692eb
commit
7a950e028c
@ -33,9 +33,9 @@ elseif(NOT CMAKE_CXX_STANDARD)
|
|||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# make sure __cplusplus is defined when using msvc and enable parallel build
|
# under msvc make sure __cplusplus, parallel build and utf-8 enabled
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus /MP")
|
string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus /MP /utf-8")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
Loading…
Reference in New Issue
Block a user