Skip to content

cmake: Avoid using target_properties for old cmake - #3851

Merged
yanesca merged 1 commit into
Mbed-TLS:mbedtls-2.16from
d3zd3z:fix3801-2.16
Nov 5, 2020
Merged

yanesca merged 1 commit into
Mbed-TLS:mbedtls-2.16from
d3zd3z:fix3801-2.16

Conversation

@d3zd3z

@d3zd3z d3zd3z commented Nov 4, 2020

Copy link
Copy Markdown
Contributor

CMake versions less than 3.0 do not support the target_sources
command. In order to be able to support v2.8.12.2 of cmake, add the
extra targets directly to the target command.

This is a backport from the development branch, except that the uses in
this branch are simpler, and modifying the SOURCES property directly is
not needed.

Fixes #3801

Signed-off-by: David Brown david.brown@linaro.org

Backport of #3845. This backport follows the same spirit, but the uses of target_sources in the 2.16 branch are much simpler than in the development branch, and it is easier to just add the extra targets to the main executable command.

CMake versions less than 3.0 do not support the `target_sources`
command.  In order to be able to support v2.8.12.2 of cmake, add the
extra targets directly to the target command.

This is a backport from the development branch, except that the uses in
this branch are simpler, and modifying the SOURCES property directly is
not needed.

Fixes Mbed-TLS#3801

Signed-off-by: David Brown <david.brown@linaro.org>
@gilles-peskine-arm gilles-peskine-arm added component-platform Portability layer and build scripts needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review labels Nov 4, 2020

@ronald-cron-arm ronald-cron-arm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks for fixing this in 2.16 as well.

@yanesca yanesca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@yanesca yanesca removed needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review labels Nov 5, 2020
@yanesca
yanesca merged commit 2305542 into Mbed-TLS:mbedtls-2.16 Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component-platform Portability layer and build scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants