From 02bbb8c45b8a3d9c17c4774187fbc23323222626 Mon Sep 17 00:00:00 2001 From: erw7 Date: Mon, 20 Jul 2020 01:42:41 +0900 Subject: build: fix a problem with the static library name (#12591) Fix the problem that the static library name was liblibnvim.a in the environment other than Windows due to the change of bf58c00. --- src/nvim/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 982fab173f..c7258dde12 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -570,10 +570,16 @@ add_library( ) set_property(TARGET libnvim APPEND PROPERTY INCLUDE_DIRECTORIES ${LUA_PREFERRED_INCLUDE_DIRS}) +if(MSVC) + set(LIBNVIM_NAME libnvim) +else() + set(LIBNVIM_NAME nvim) +endif() set_target_properties( libnvim PROPERTIES POSITION_INDEPENDENT_CODE ON + OUTPUT_NAME ${LIBNVIM_NAME} ) set_property( TARGET libnvim -- cgit