File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ option(ENABLE_COVERAGE "Build code coverage report from tests" OFF)
245
245
option (ENABLE_FUZZ_TARGETS "Build target programs suitable for fuzzing with AFL" OFF )
246
246
option (ENABLE_INTERNAL_DOCS "Generate doxygen documentation also from internal headers" OFF )
247
247
option (ENABLE_YANGLINT_INTERACTIVE "Enable interactive CLI yanglint" ON )
248
+ option (ENABLE_TOOLS "Build binary tools 'yanglint' and 'yangre'" ON )
248
249
option (BUILD_SHARED_LIBS "By default, shared libs are enabled. Turn off for a static build." ON )
249
250
set (YANG_MODULE_DIR "${CMAKE_INSTALL_PREFIX} /${CMAKE_INSTALL_DATADIR} /yang/modules/libyang" CACHE STRING "Directory where to copy the YANG modules to" )
250
251
@@ -456,7 +457,9 @@ endif()
456
457
gen_coverage ("utest_.*" "utest_.*_valgrind" )
457
458
458
459
# tools - yanglint, yangre
459
- add_subdirectory (tools )
460
+ if (ENABLE_TOOLS )
461
+ add_subdirectory (tools )
462
+ endif ()
460
463
461
464
# generate doxygen documentation for libyang API
462
465
gen_doc ("${doxy_files} " ${LIBYANG_VERSION} ${LIBYANG_DESCRIPTION} ${project_logo} )
You can’t perform that action at this time.
0 commit comments