mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
Use cmake module instead of shared for nvim-test
On a Mac using shared creates libnvim-test.dylib which cannot be found by the hardcoded .so extension in helpers.moon, causing the unittests to fail. However, using module creates libnvim-test.so, allowing the tests to run. There will still be problems running the tests on windows, because both shared and module create dll file which will not be found by in helpers.moon.
This commit is contained in:
parent
4600b9c035
commit
79882bc7bd
2
.gitignore
vendored
2
.gitignore
vendored
@ -8,6 +8,8 @@ build/
|
||||
*.swp
|
||||
*~
|
||||
*.pyc
|
||||
*.o
|
||||
*.so
|
||||
src/po/vim.pot
|
||||
|
||||
src/po/*.ck
|
||||
|
@ -13,7 +13,7 @@ list(APPEND NEOVIM_SOURCES "${PROJECT_BINARY_DIR}/config/auto/pathdef.c")
|
||||
file( GLOB OS_SOURCES os/*.c )
|
||||
|
||||
add_executable (nvim ${NEOVIM_SOURCES} ${OS_SOURCES})
|
||||
add_library (nvim-test SHARED ${NEOVIM_SOURCES} ${OS_SOURCES})
|
||||
add_library (nvim-test MODULE ${NEOVIM_SOURCES} ${OS_SOURCES})
|
||||
|
||||
# The libraries we link against for nvim
|
||||
set(NVIM_LINK_LIBRARIES m ${LibUV_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
Loading…
Reference in New Issue
Block a user