mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
CMake: Fix issue in newer cmake versions
* Fixes following error: can not determine linker language for target: __idf_newlib
This commit is contained in:
parent
a16d1e8f1a
commit
901925ebc5
@ -475,7 +475,7 @@ function(idf_component_register)
|
||||
__component_add_include_dirs(${component_lib} "${__INCLUDE_DIRS}" PUBLIC)
|
||||
__component_add_include_dirs(${component_lib} "${__PRIV_INCLUDE_DIRS}" PRIVATE)
|
||||
__component_add_include_dirs(${component_lib} "${config_dir}" PUBLIC)
|
||||
set_target_properties(${component_lib} PROPERTIES OUTPUT_NAME ${COMPONENT_NAME})
|
||||
set_target_properties(${component_lib} PROPERTIES OUTPUT_NAME ${COMPONENT_NAME} LINKER_LANGUAGE C)
|
||||
__ldgen_add_component(${component_lib})
|
||||
else()
|
||||
add_library(${component_lib} INTERFACE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user