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 5eaba04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ project(megatest)

add_subdirectory(libs)

# binary
file(GLOB_RECURSE SOURCES "src/*.cpp")
add_executable(${PROJECT_NAME} ${SOURCES})
target_include_directories(${PROJECT_NAME}
Expand Down
3 changes: 3 additions & 0 deletions libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ add_library(stb STATIC ${STB_SOURCES} ${STB_HEADERS})

# --- SPDLOG ---
add_subdirectory(spdlog)
if (MSVC)
target_compile_options(spdlog PRIVATE /utf-8)
endif()

# --- IMGUI ---
file (GLOB IMGUI_SOURCES imgui/*.cpp)
Expand Down

0 comments on commit 5eaba04

Please sign in to comment.