mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
11f3898e33
This fixes the issue where component CMAKE variables propagate by default to the entire project, for instance compiler flags. Useful for when you want to have component specific compiler flags or defines. Closes https://github.com/espressif/esp-idf/pull/8806 Closes https://github.com/espressif/esp-idf/issues/8881
10 lines
279 B
CMake
10 lines
279 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
if((IDF_TARGET STREQUAL "esp32s2") OR (IDF_TARGET STREQUAL "esp32c3"))
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
project(test_memprot)
|
|
|
|
target_link_libraries(${project_elf} PRIVATE "-Wl,--wrap=esp_panic_handler")
|
|
|
|
endif()
|