Skip to content

Commit f1ccc40

Browse files
cmake: Remove defaults for COMPONENT_SRCDIRS, COMPONENT_SRCS, COMPONENT_ADD_INCLUDEDIRS
* Philosophical: "explicit is better than implicit". * Practical: Allows useful errors if invalid directories given in components as the defaults aren't always used. Also trims the -I path from a number of components that have no actual include directory. * Simplifies knowing which components will be header-only and which won't * Original commit: espressif/esp-idf@4f1a856
1 parent 84bd1d7 commit f1ccc40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/mdns/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
set(COMPONENT_SRCDIRS ".")
2+
set(COMPONENT_ADD_INCLUDEDIRS "include")
3+
set(COMPONENT_PRIV_INCLUDEDIRS "private_include")
14
register_component()
25

0 commit comments

Comments
 (0)