-
Notifications
You must be signed in to change notification settings - Fork 31
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
Remove unix-specific fPIC flag #399
Merged
Merged
Conversation
This file contains 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
Signed-off-by: Michael Carroll <[email protected]>
mjcarroll
requested review from
mxgrey,
j-rivero and
scpeters
as code owners
December 21, 2023 15:19
azeey
approved these changes
Dec 21, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. Not sure why these were needed in the first place.
j-rivero
approved these changes
Dec 21, 2023
mjcarroll
added a commit
to gazebosim/gz-rendering
that referenced
this pull request
Jan 4, 2024
This was broken by gazebosim/gz-cmake#399, since we dropped the gazebo-specific flag, we can use native CMake mechanism for marking this library position-independent. Signed-off-by: Michael Carroll <[email protected]>
mjcarroll
added a commit
to gazebosim/gz-rendering
that referenced
this pull request
Jan 4, 2024
This was broken by gazebosim/gz-cmake#399, since we dropped the gazebo-specific flag, we can use native CMake mechanism for marking this library position-independent. Signed-off-by: Michael Carroll <[email protected]>
mderbaso-deepx
pushed a commit
to DeepX-inc/gz-rendering
that referenced
this pull request
Jun 6, 2024
This was broken by gazebosim/gz-cmake#399, since we dropped the gazebo-specific flag, we can use native CMake mechanism for marking this library position-independent. Signed-off-by: Michael Carroll <[email protected]>
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.
The
exec_program
call now raises a cmake warning in sufficiently new cmake versions, it was first triggered here: https://build.osrfoundation.org/job/gz_plugin-ci-pr_any-homebrew-amd64/4/cmake/With the warning:
Policy CMP0153 is not set: The exec_program command should not be called.
The policy is introduced in 3.28, which is probably why we are seeing it on homebrew first: https://cmake.org/cmake/help/latest/policy/CMP0153.html
Once I started looking at what was happening here, though, I think that we can remove the logic entirely.
Some things I noticed that I think are wrong:
CMAKE_SYSTEM_PROCESSOR
with the contents ofuname
.CMAKE_SYSTEM_PROCESSOR
should be set toCMAKE_HOST_SYSTEM_PROCESSOR
(See https://cmake.org/cmake/help/latest/variable/CMAKE_HOST_SYSTEM_PROCESSOR.html)CMAKE_SYSTEM_PROCESSOR
MODULE
orSHARED
library types, which would be the same as the logic here.