mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02: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:
@@ -475,7 +475,7 @@ function(idf_component_register)
|
|||||||
__component_add_include_dirs(${component_lib} "${__INCLUDE_DIRS}" PUBLIC)
|
__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} "${__PRIV_INCLUDE_DIRS}" PRIVATE)
|
||||||
__component_add_include_dirs(${component_lib} "${config_dir}" PUBLIC)
|
__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})
|
__ldgen_add_component(${component_lib})
|
||||||
else()
|
else()
|
||||||
add_library(${component_lib} INTERFACE)
|
add_library(${component_lib} INTERFACE)
|
||||||
|
Reference in New Issue
Block a user