Skip to content

Commit 9ff0b31

Browse files
committed
tweak cmake
1 parent c788711 commit 9ff0b31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE include)
1616
# Pull in our pico_stdlib which pulls in commonly used features
1717
target_link_libraries(${PROJECT_NAME} pico_stdlib hardware_pwm)
1818

19-
add_subdirectory(examples)
19+
if (${BUILD_EXAMPLES})
20+
add_subdirectory(examples)
21+
endif()

0 commit comments

Comments
 (0)