mirror of
https://github.com/neovim/neovim.git
synced 2026-07-19 15:41:32 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user