Skip to content

Commit e72816a

Browse files
committed
Added CMake option to disable building experiments
1 parent a315e2b commit e72816a

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
@@ -8,6 +8,7 @@ project(CPP-NETLIB)
88

99
option( CPP-NETLIB_BUILD_SHARED_LIBS "Build cpp-netlib as shared libraries." OFF )
1010
option( CPP-NETLIB_BUILD_TESTS "Build the cpp-netlib project tests." ON)
11+
option( CPP-NETLIB_BUILD_EXPERIMENTS "Build the cpp-netlib project experiments." ON)
1112
option( CPP-NETLIB_BUILD_EXAMPLES "Build the cpp-netlib project examples." ON)
1213

1314
include(GNUInstallDirs)
@@ -87,7 +88,9 @@ if (Boost_FOUND)
8788
if (CPP-NETLIB_BUILD_TESTS)
8889
add_subdirectory(libs/network/test)
8990
endif (CPP-NETLIB_BUILD_TESTS)
90-
add_subdirectory(libs/network/experiment)
91+
if (CPP-NETLIB_BUILD_EXPERIMENTS)
92+
add_subdirectory(libs/network/experiment)
93+
endif (CPP-NETLIB_BUILD_EXPERIMENTS)
9194
if (NOT MSVC AND CPP-NETLIB_BUILD_TESTS)
9295
add_subdirectory(libs/mime/test)
9396
endif(NOT MSVC AND CPP-NETLIB_BUILD_TESTS)

0 commit comments

Comments
 (0)