Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set cmp0026 to OLD until we can migrate to use $<TARGET_FILE:...> #29

Merged
merged 2 commits into from Sep 15, 2015

Conversation

wjwwood
Copy link
Contributor

@wjwwood wjwwood commented Sep 9, 2015

This should fix #27.

Connects to #27

@wjwwood wjwwood added the in progress Actively being worked on (Kanban column) label Sep 9, 2015
@@ -71,6 +71,10 @@ function(ament_cmake_symlink_install_targets)
endif()
# TODO consider using a generator expression instead
# $<TARGET_FILE:target>
# Until them use the old policy.
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment suggests that this "changes" the policy which is not the case. Since the code set 2.8.3 as the minimum required version the old policy is already being used implicitly.

Can you please update the comment to state the reason for setting the policy explicitly more clearly. E.g.:

# set the policy explicitly in order to avoid warning with newer CMake versions

@dirk-thomas
Copy link
Contributor

The changed location is only one case there LOCATION is being used. When not using symlinked installs this code part will not be triggered.

Therefore I assume it does not fix #27 yet when building tests is enabled. I think the same thing needs also to be done in other locations:

@wjwwood
Copy link
Contributor Author

wjwwood commented Sep 15, 2015

Ok, I've updated the pr.

@dirk-thomas
Copy link
Contributor

+1

wjwwood added a commit that referenced this pull request Sep 15, 2015
set cmp0026 to OLD until we can migrate to use $<TARGET_FILE:...>
@wjwwood wjwwood merged commit 55a6b49 into master Sep 15, 2015
@wjwwood wjwwood removed the in progress Actively being worked on (Kanban column) label Sep 15, 2015
@wjwwood wjwwood deleted the suppress_cmp0026 branch September 15, 2015 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warnings with CMake 3.3.1
2 participants