]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
examples: add cmake enabling option BUILD_EXAMPLES.
authorHong, Yang A <yang.a.hong@intel.com>
Tue, 1 Dec 2020 08:41:59 +0000 (08:41 +0000)
committerKonstantinos Margaritis <markos@users.noreply.github.com>
Mon, 25 Jan 2021 12:13:13 +0000 (14:13 +0200)
CMakeLists.txt

index 04b7de239cb49514e7635da4fd1a7d99147b5a27..528455b8e05f22d2eddc58ef21da4b7bc0120e76 100644 (file)
@@ -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()