neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit e21899ac4f86ffd7b8eca2eedcd51bca6ded2434
parent 9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e
Author: Dundar Goc <gocdundar@gmail.com>
Date:   Wed, 25 May 2022 22:23:27 +0200

ci(mingw): only enable -municode for MinGW

When enabling -municode for MSVC the following warning shows up:
"LINK : warning LNK4044: unrecognized option '/municode'; ignored".
This will ensure cleaner logs for the MSVC job.

Diffstat:
Msrc/nvim/CMakeLists.txt | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt @@ -13,8 +13,10 @@ if(USE_GCOV) endif() if(WIN32) - # tell MinGW compiler to enable wmain - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -municode") + if(MINGW) + # Enable wmain + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -municode") + endif() elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework CoreServices") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -framework CoreServices")