From: Hong, Yang A Date: Tue, 1 Dec 2020 08:41:59 +0000 (+0000) Subject: examples: add cmake enabling option BUILD_EXAMPLES. X-Git-Tag: vectorscan-v5.4.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb9ed6048959dd1c8894fcb495311531ed1ceb6c;p=thirdparty%2Fvectorscan.git examples: add cmake enabling option BUILD_EXAMPLES. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 04b7de23..528455b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1432,7 +1432,7 @@ if (NOT BUILD_STATIC_LIBS) add_library(hs ALIAS hs_shared) endif () - -if(NOT WIN32) +option(BUILD_EXAMPLES "Build Hyperscan example code (default TRUE)" TRUE) +if(NOT WIN32 AND BUILD_EXAMPLES) add_subdirectory(examples) endif()