Skip to content

Commit

Permalink
fix: enable utf-8 support on msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMcAvoy committed Nov 13, 2024
1 parent 81a1827 commit 4a4e062
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
set (CMAKE_CXX_STANDARD 20)
set (CMAKE_CXX_STANDARD_REQUIRED ON)

if (MSVC)
add_compile_options(/utf-8)
endif()

# Project declaration
project(megatest)

add_subdirectory(libs)

# binary
file(GLOB_RECURSE SOURCES "src/*.cpp")
add_executable(${PROJECT_NAME} ${SOURCES})
target_include_directories(${PROJECT_NAME}
Expand Down

0 comments on commit 4a4e062

Please sign in to comment.