Skip to content

Commit

Permalink
Enforce utf-8 charset when building astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet authored and pramsey committed Apr 28, 2020
1 parent 66908f9 commit 46fcfd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/astyle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB_RECURSE astyle_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
add_executable(astyle ${astyle_SOURCES})
if(MSVC)
target_compile_options(astyle PRIVATE /source-charset:utf-8)
endif()
# message(STATUS "Enable AStyle")

0 comments on commit 46fcfd5

Please sign in to comment.