We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e125ae7 commit 69384dfCopy full SHA for 69384df
CMakeLists.txt
@@ -240,9 +240,15 @@ else()
240
-Wall -Wextra -Werror=return-type)
241
endif()
242
243
+######################################################
244
+# Samples
245
+if (BUILD_SAMPLES)
246
+ add_subdirectory(sample_nodes)
247
+endif()
248
+
249
######################################################
250
# Test
-if (BUILD_UNIT_TESTS)
251
+if (BUILD_UNIT_TESTS AND BUILD_SAMPLES)
252
add_subdirectory(tests)
253
254
@@ -276,7 +282,6 @@ if(BUILD_TOOLS)
276
282
add_subdirectory(tools)
277
283
278
284
279
-if( BUILD_EXAMPLES )
280
- add_subdirectory(sample_nodes)
285
+if(BUILD_EXAMPLES AND BUILD_SAMPLES)
281
286
add_subdirectory(examples)
287
0 commit comments