From f1ccc4052e2b540fe5215707cd53a8f83609f090 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Fri, 19 Jan 2018 16:22:08 +1100 Subject: [PATCH] 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@4f1a856dbfd752336cd71730105e02ad8c045541 --- components/mdns/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/mdns/CMakeLists.txt b/components/mdns/CMakeLists.txt index 0ba2e49dc..149dcb0bc 100644 --- a/components/mdns/CMakeLists.txt +++ b/components/mdns/CMakeLists.txt @@ -1,2 +1,5 @@ +set(COMPONENT_SRCDIRS ".") +set(COMPONENT_ADD_INCLUDEDIRS "include") +set(COMPONENT_PRIV_INCLUDEDIRS "private_include") register_component()