Repository navigation
cmake: Avoid using target_properties for old cmake - #3851
Merged
Merged
Conversation
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>
1 of 4 tasks
ronald-cron-arm
approved these changes
Nov 5, 2020
ronald-cron-arm
left a comment
Contributor
There was a problem hiding this comment.
Perfect, thanks for fixing this in 2.16 as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CMake versions less than 3.0 do not support the
target_sourcescommand. 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.