From 845ea5c9e3a4183848156b61c7d2fe3400f649ec Mon Sep 17 00:00:00 2001 From: "Hong, Yang A" Date: Tue, 1 Dec 2020 08:41:59 +0000 Subject: [PATCH] examples: add cmake enabling option BUILD_EXAMPLES. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 034cd2a4..7df6d85f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1408,7 +1408,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()