examples: add cmake enabling option BUILD_EXAMPLES.

This commit is contained in:
Hong, Yang A 2020-12-01 08:41:59 +00:00 committed by Konstantinos Margaritis
parent 6fd77679d9
commit bb9ed60489

View 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()