diff options
author | erw7 <erw7.github@gmail.com> | 2020-07-20 01:42:41 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-19 18:42:41 +0200 |
commit | 02bbb8c45b8a3d9c17c4774187fbc23323222626 (patch) | |
tree | 3ea16047a32b567142eb8fd959905f15d1f5c5d8 | |
parent | daa5bffd93e19987980705990615c730fe07ea5f (diff) | |
download | rneovim-02bbb8c45b8a3d9c17c4774187fbc23323222626.tar.gz rneovim-02bbb8c45b8a3d9c17c4774187fbc23323222626.tar.bz2 rneovim-02bbb8c45b8a3d9c17c4774187fbc23323222626.zip |
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.
-rw-r--r-- | src/nvim/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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 |