mirror of
https://github.com/neovim/neovim.git
synced 2025-11-11 04:55:33 +00:00
Don't require busted.
Only provide the unittest target if busted was found. And only build nvim-test if the unittest target exists by excluding nvim-test from all. Note: this means nvim-test won't be built by default, but it will be built when you try to run unittests.
This commit is contained in:
@@ -55,8 +55,8 @@ if(NOT DEFINED ENV{SKIP_EXEC})
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED ENV{SKIP_UNITTEST})
|
||||
add_library(nvim-test MODULE ${NEOVIM_SOURCES} ${OS_SOURCES})
|
||||
target_link_libraries (nvim-test ${NVIM_LINK_LIBRARIES})
|
||||
add_library(nvim-test MODULE EXCLUDE_FROM_ALL ${NEOVIM_SOURCES} ${OS_SOURCES})
|
||||
target_link_libraries(nvim-test ${NVIM_LINK_LIBRARIES})
|
||||
endif()
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/src/proto")
|
||||
include_directories("${PROJECT_SOURCE_DIR}/src/proto")
|
||||
|
||||
Reference in New Issue
Block a user