Skip to content

Commit

Permalink
fix dict_compile/CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Mar 1, 2023
1 parent f274d58 commit ee587d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dict_compile/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
include_directories(../include)
add_executable(dict_compile dict_compile.cpp dict_compile_res.rc)
target_link_libraries(dict_compile kernel32 user32)
target_compile_options(dict_compile PRIVATE -finput-charset=CP932 -fexec-charset=CP932)

# Workaround for Shift_JIS
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(dict_compile PRIVATE -finput-charset=CP932 -fexec-charset=CP932)
endif()

0 comments on commit ee587d4

Please sign in to comment.