Skip to content
Permalink
Browse files

cmake: add a linting target

  • Loading branch information...
tiennou committed May 27, 2019
1 parent 10873ce commit 1d69f93c09f960168447baf37c67604e4f5bcbc9
Showing with 8 additions and 0 deletions.
  1. +8 −0 CMakeLists.txt
@@ -98,6 +98,14 @@ if(BUILD_TESTING)
add_subdirectory(tests)
endif()

option(LINT "Check style while building" OFF)
if(LINT)
add_custom_target(lint ALL
./ci/checksrc.sh
WORKING_DIRECTORY ${libssh2_SOURCE_DIR})
add_dependencies(libssh2 lint)
endif()

add_subdirectory(docs)

feature_summary(WHAT ALL)

0 comments on commit 1d69f93

Please sign in to comment.
You can’t perform that action at this time.