-
Notifications
You must be signed in to change notification settings - Fork 910
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
SHARED linking for Geographiclib #624
SHARED linking for Geographiclib #624
Conversation
CMakeLists.txt
Outdated
@@ -34,7 +34,7 @@ endif() | |||
|
|||
# Geographiclib installs FindGeographicLib.cmake to this non-standard location | |||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/share/cmake/geographiclib/") | |||
find_package(GeographicLib REQUIRED COMPONENTS STATIC) | |||
find_package(GeographicLib REQUIRED COMPONENTS SHARED) |
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.
Is there a way to just remove the explicit STATIC
/SHARED
dependency on the line?
Something like just
find_package(GeographicLib REQUIRED COMPONENTS SHARED) | |
find_package(GeographicLib REQUIRED) |
@@ -34,7 +34,7 @@ endif() | |||
|
|||
# Geographiclib installs FindGeographicLib.cmake to this non-standard location | |||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/share/cmake/geographiclib/") | |||
find_package(GeographicLib REQUIRED COMPONENTS STATIC) | |||
find_package(GeographicLib REQUIRED) |
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.
@AGummyBear Was there any reason for the static linkage previously?
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.
My thinking was just that it would result in not needing to install GeographicLib as a dependency unless building, since I think most users are probably running this package as installed. I'm fine with the change to shared though. There was no technical reason to use static.
* remove GeographicLib specific linking option
* remove GeographicLib specific linking option
* remove GeographicLib specific linking option
* SHARED linking for Geographiclib (cra-ros-pkg#624) (cra-ros-pkg#713) * remove GeographicLib specific linking option Co-authored-by: Achmad Fathoni <fathoni.id@gmail.com> * Fixing code style divergence for ament_uncrustify (cra-ros-pkg#742) * Fixed state history reversion (cra-ros-pkg#736) Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl> * Read predict_to_current_time from ROS parameters (cra-ros-pkg#737) Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl> * Using angles library to normalize angles (cra-ros-pkg#739) * Using angles library for innovation angle normalization Co-authored-by: Stephan Sundermann <stephansundermann@gmail.com> Co-authored-by: Achmad Fathoni <fathoni.id@gmail.com> Co-authored-by: Anish <anishgdev@gmail.com> Co-authored-by: Zygfryd Wieszok <zygfryd.wieszok@gmail.com> Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl> Co-authored-by: Marek Piechula <marpiechula@gmail.com>
* SHARED linking for Geographiclib (cra-ros-pkg#624) (cra-ros-pkg#713) * remove GeographicLib specific linking option Co-authored-by: Achmad Fathoni <fathoni.id@gmail.com> * Fixing code style divergence for ament_uncrustify (cra-ros-pkg#742) * Fixed state history reversion (cra-ros-pkg#736) Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl> * Read predict_to_current_time from ROS parameters (cra-ros-pkg#737) Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl> * Using angles library to normalize angles (cra-ros-pkg#739) * Using angles library for innovation angle normalization Co-authored-by: Stephan Sundermann <stephansundermann@gmail.com> Co-authored-by: Achmad Fathoni <fathoni.id@gmail.com> Co-authored-by: Anish <anishgdev@gmail.com> Co-authored-by: Zygfryd Wieszok <zygfryd.wieszok@gmail.com> Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl> Co-authored-by: Marek Piechula <marpiechula@gmail.com>
Arch Linux doesn't install static library by default. So I made this PR for AUR package patch. It is OK if this PR is not eventually accepted.