OVMS3-idf/tools/cmake
Renz Christian Bagaporo 3882e48e8a cmake: use new signature form of target_link_library to link components
!4452 used setting LINK_LIBRARIES and INTERFACE_LINK_LIBRARIES to link
components built under ESP-IDF build system. However, LINK_LIBRARIES does
not produce behavior same as linking PRIVATE. This MR uses the new
signature for target_link_libraries directly instead. This also moves
setting dependencies during component registration rather than after all
components have been processed.

The consequence is that internally, components have to use the new
signature form as well. This does not affect linking the components to
external targets, such as with idf_as_lib example. This only affects
linking additional libraries to ESP-IDF libraries outside component processing (after
idf_build_process), which is not even possible for CMake<v3.13 as
target_link_libraries is not valid for targets not created in current
directory. See https://cmake.org/cmake/help/v3.13/policy/CMP0079.html#policy:CMP0079
2019-06-11 18:09:26 +08:00
..
scripts cmake: evaluate component requirements in one go 2019-06-11 18:09:26 +08:00
third_party cmake: Project & IDF git revisions: Show un-annotated tags and -dirty flag 2019-05-23 13:46:23 +10:00
build.cmake cmake: use new signature form of target_link_library to link components 2019-06-11 18:09:26 +08:00
component.cmake cmake: use new signature form of target_link_library to link components 2019-06-11 18:09:26 +08:00
convert_to_cmake.py cmake: build system changes 2019-05-13 19:57:39 +08:00
crosstool_version_check.cmake cmake: fix crosstool-NG version check regex 2019-06-10 09:51:40 +00:00
git_submodules.cmake cmake: Use cmake_lint project, tidy up all CMake source files 2018-04-30 09:59:20 +10:00
idf.cmake cmake: build system changes 2019-05-13 19:57:39 +08:00
kconfig.cmake cmake: expand build components before generating config 2019-06-11 18:09:26 +08:00
ldgen.cmake cmake: use new signature form of target_link_library to link components 2019-06-11 18:09:26 +08:00
project.cmake cmake: do not use link groups 2019-05-28 10:51:02 +08:00
project_description.json.in Rename Kconfig options (components/esptool_py) 2019-05-21 09:32:55 +02:00
run_cmake_lint.sh Merge branch 'master' into feature/cmake 2018-08-16 17:14:17 +10:00
targets.cmake cmake: build system changes 2019-05-13 19:57:39 +08:00
toolchain-esp32.cmake cmake: For gcc8 use linker to find paths to libc, libm, libstdc++, etc 2019-05-28 12:54:37 +08:00
utilities.cmake cmake: use new signature form of target_link_library to link components 2019-06-11 18:09:26 +08:00