summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f9d1f72c..3f0db812 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,12 @@ cmake_minimum_required(VERSION 3.16)
include($ENV{PROJ_PATH}/tools/cmake/common.cmake)
-set(SDKCONFIG_DEFAULTS "sdkconfig.common")
+get_filename_component(_abs_curr_dir "." ABSOLUTE)
+if (EXISTS ${_abs_curr_dir}/sdkconfig.local)
+ set(SDKCONFIG_DEFAULTS "sdkconfig.common;sdkconfig.local")
+else()
+ set(SDKCONFIG_DEFAULTS "sdkconfig.common")
+endif()
# No exceptions in app builds (this is different in test builds).
idf_build_set_property(COMPILE_OPTIONS "-DRESULT_DISABLE_EXCEPTIONS" APPEND)