diff options
author | Yuto Tokunaga <yuntan.sub1@gmail.com> | 2017-08-23 07:55:00 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-08-23 00:55:00 +0200 |
commit | e5565891af5858965a65366ecb7f791abc988931 (patch) | |
tree | 1b739f8e66e9421677148135d65f20d2b8d5a607 /src/nvim/CMakeLists.txt | |
parent | 85f3084e21e112a34d891d90cfaf37a7de726866 (diff) | |
download | rneovim-e5565891af5858965a65366ecb7f791abc988931.tar.gz rneovim-e5565891af5858965a65366ecb7f791abc988931.tar.bz2 rneovim-e5565891af5858965a65366ecb7f791abc988931.zip |
win: wmain(): locale-independent argv (#7180)
fix #7060
Diffstat (limited to 'src/nvim/CMakeLists.txt')
-rw-r--r-- | src/nvim/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 688912eda6..e2f1f16635 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -10,6 +10,11 @@ if(USE_GCOV) endif() endif() +if(WIN32) + # tell MinGW compiler to enable wmain + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -municode") +endif() + set(TOUCHES_DIR ${PROJECT_BINARY_DIR}/touches) set(GENERATOR_DIR ${CMAKE_CURRENT_LIST_DIR}/generators) set(GENERATED_DIR ${PROJECT_BINARY_DIR}/src/nvim/auto) |