Skip to content

Commit 60c93f1

Browse files
committed
libraries: Wire: Compile only CONFIG_I2C enabled
Compiling Wire.cpp only if CONFIG_I2C enabled. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent fad6df7 commit 60c93f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libraries/Wire/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ zephyr_include_directories(.)
33

44
if(NOT DEFINED ARDUINO_BUILD_PATH)
55

6-
zephyr_sources(Wire.cpp)
6+
zephyr_sources_ifdef(CONFIG_I2C Wire.cpp)
77

88
endif()

0 commit comments

Comments
 (0)