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 7e80091 commit 00006b9Copy full SHA for 00006b9
Arduino.cmake
@@ -51,11 +51,12 @@ function(arduino_library LIB_NAME LIB_PATH)
51
target_compile_options(${LIB_NAME} PRIVATE -DPROGMEM=)
52
# Ensure C files are compiled as C, not C++
53
set_target_properties(${LIB_NAME} PROPERTIES LINKER_LANGUAGE C)
54
+ target_include_directories(${LIB_NAME} PUBLIC ${INC_DIR})
55
else()
56
# Create a header-only interface library if no source files
57
add_library(${LIB_NAME} INTERFACE)
58
+ target_include_directories(${LIB_NAME} INTERFACE ${INC_DIR})
59
endif()
- target_include_directories(${LIB_NAME} PUBLIC ${INC_DIR})
60
# Link arduino_emulator to propagate its include directories
61
if(TARGET arduino_emulator)
62
if(SRC_FILES)
0 commit comments