Skip to content

Commit ada3c96

Browse files
committed
Examples default off
1 parent 49c9fb5 commit ada3c96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ option(USE_HTTPS "Https Support" OFF)
99
option(USE_RPI "Raspberry Pi Support" OFF)
1010
option(USE_REMOTE "Remote API Support" OFF)
1111
option(BUILD_SHARED_LIBS "Build with shared libraries" ON)
12+
option(BUILD_EXAMPLES "Build with examples" OFF)
1213

1314
# Https support: Build with wolfssl
1415
if(USE_HTTPS)
@@ -94,4 +95,6 @@ if(USE_FTDI)
9495
endif(USE_FTDI)
9596

9697
# build examples
97-
add_subdirectory("examples")
98+
if(BUILD_EXAMPLES)
99+
add_subdirectory("examples")
100+
endif(BUILD_EXAMPLES)

0 commit comments

Comments
 (0)