From b9ada252964acff8f5e17ddab9c654e0743b960a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 16 Sep 2013 08:21:12 +0200 Subject: cmake: Allow to build without examples. BUG: https://red.libssh.org/issues/114 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e783c2b..2c5c723 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,7 +109,9 @@ install( # in tree build settings configure_file(libssh-build-tree-settings.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/libssh-build-tree-settings.cmake @ONLY) -add_subdirectory(examples) +if (WITH_EXAMPLES) + add_subdirectory(examples) +endif (WITH_EXAMPLES) if (WITH_TESTING) find_package(CMocka REQUIRED) -- cgit