mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
feat(cmakev2): add idf_build_get_compile_options and use in compat and component
Add idf_build_get_compile_options() to aggregate COMPILE_OPTIONS, C_COMPILE_OPTIONS, CXX_COMPILE_OPTIONS, and ASM_COMPILE_OPTIONS build properties with generator expressions. Replace internal __get_compile_options(OUTPUT ...) usage in idf_component_register and idf_component_include with the new public function.
This commit is contained in:
committed by
Frantisek Hrbata
parent
c4fcce84cc
commit
d782a2c4eb
@@ -1055,6 +1055,6 @@ function(idf_component_include name)
|
||||
idf_build_get_property(compile_definitions COMPILE_DEFINITIONS GENERATOR_EXPRESSION)
|
||||
target_compile_definitions("${component_real_target}" PRIVATE "${compile_definitions}")
|
||||
|
||||
__get_compile_options(OUTPUT compile_options)
|
||||
idf_build_get_compile_options(compile_options)
|
||||
target_compile_options("${component_real_target}" BEFORE PRIVATE "${compile_options}")
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user