Code: Select all
add_compile_definitions(PROJECT_TYPE_A)
get_directory_property( DirDefs COMPILE_DEFINITIONS )
message( "COMPILE_DEFINITIONS TOP LEVEL = ${DirDefs}" )
Code: Select all
get_directory_property( DirDefs COMPILE_DEFINITIONS )
message(STATUS "COMPILE_DEFINITIONS COMPONENT LEVEL = ${DirDefs}" )
Code: Select all
COMPILE_DEFINITIONS TOP LEVEL = PROJECT_TYPE_A
Some Logs
....
-- ccache will be used for faster recompilation
-- Building ESP-IDF components for target esp32
-- COMPILE_DEFINITIONS COMPONENT LEVEL =
....
More Logs
-- App "<PROJECT_NAME>" version: xxxxxx-dirty
-- Adding linker script <xxxxxxxxxx>
-- Adding linker script <xxxxxxxxxx>
-- Adding linker script <xxxxxxxxxx>
-- Adding linker script <xxxxxxxxxx>
-- COMPILE_DEFINITIONS COMPONENT LEVEL = PROJECT_TYPE_A
How can I solve this problem?
Thanks in advance!