mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 01:51:52 +00:00
build: support static build #34728
This commit is contained in:
@@ -748,7 +748,11 @@ endif()
|
||||
|
||||
target_sources(nlua0 PUBLIC ${NLUA0_SOURCES})
|
||||
|
||||
if(STATIC_BUILD)
|
||||
target_link_options(nvim_bin PRIVATE -static-libgcc -static-libstdc++ -static)
|
||||
endif()
|
||||
target_link_libraries(nvim_bin PRIVATE main_lib PUBLIC libuv)
|
||||
|
||||
install_helper(TARGETS nvim_bin)
|
||||
if(MSVC)
|
||||
install(FILES $<TARGET_PDB_FILE:nvim_bin> DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
|
||||
|
||||
Reference in New Issue
Block a user