Skip to content

Commit 15231ff

Browse files
committed
build: make building conditional
Build only if TINYCBOR is enabled. Signed-off-by: Anas Nashif <[email protected]>
1 parent 52f571c commit 15231ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
if(TINYCBOR)
12
zephyr_interface_library_named(TINYCBOR)
23

34
target_include_directories(TINYCBOR INTERFACE src)
@@ -16,3 +17,4 @@ zephyr_library_sources_ifdef(CONFIG_CBOR_PRETTY_PRINTING src/cborpretty.c)
1617

1718
zephyr_library_link_libraries(TINYCBOR)
1819
target_link_libraries(TINYCBOR INTERFACE zephyr_interface)
20+
endif()

0 commit comments

Comments
 (0)