diff --git a/dict_compile/CMakeLists.txt b/dict_compile/CMakeLists.txt index f9e468ba..8051572c 100644 --- a/dict_compile/CMakeLists.txt +++ b/dict_compile/CMakeLists.txt @@ -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()