1cmake_minimum_required(VERSION 3.5)
2
3# Here for reproducible builds, we use the CI compile options to make sure they're same.
4# Use -ffile-prefix-map to map the local path prefix to ci path prefix
5
6set(ENV{EXTRA_CFLAGS} "-DIDF_CI_BUILD -Werror -Werror=deprecated-declarations -Werror=unused-variable \
7    -Werror=unused-but-set-variable -Werror=unused-function -Wstrict-prototypes \
8    -ffile-prefix-map=$ENV{IDF_PATH}=/builds/espressif/esp-idf")
9
10set(ENV{EXTRA_CXXFLAGS} "-DIDF_CI_BUILD -Werror -Werror=deprecated-declarations -Werror=unused-variable \
11    -Werror=unused-but-set-variable -Werror=unused-function \
12    -ffile-prefix-map=$ENV{IDF_PATH}=/builds/espressif/esp-idf")
13
14include($ENV{IDF_PATH}/tools/cmake/project.cmake)
15project(test_core_dump)
16