From 7bd4d68d9316e13c6a8b3ff805daaf6b4c35e18c Mon Sep 17 00:00:00 2001 From: John Szakmeister Date: Sat, 22 Mar 2014 07:14:55 -0400 Subject: 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. --- src/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e89672a91f..386eb3f592 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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") -- cgit