Skip to content

Commit

Permalink
cmake : set MSVC to use UTF-8 on source files (#2346)
Browse files Browse the repository at this point in the history
  • Loading branch information
drasticactions authored Aug 30, 2024
1 parent 9600fc3 commit c96906d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ if (NOT XCODE AND NOT MSVC AND NOT CMAKE_BUILD_TYPE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()

# If MSVC set utf-8 encoding
if (MSVC)
add_compile_options(/utf-8)
endif()

# Add path to modules
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")

Expand Down

0 comments on commit c96906d

Please sign in to comment.