Skip to content

Add Option to Build As Shared Library With Position Independent Code #113

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

Merged

Conversation

OliverGlandberger
Copy link
Contributor

@OliverGlandberger OliverGlandberger commented Feb 18, 2025

THIS PR aimed at adding the ability to build the SDK as a dynamic library with -fPIC and release flags contained multiple comments / suggestions from MaximilienNaveau.

Here we implement the suggestions from that PR as well as adding build-options for building as shared/dynamic with or without versioning.


Tests Run

  • Tested to build as static, shared, and shared with versioning on:
    • ✅Ubuntu
    • ✅Windows
  • Succesfully ran tests with dynamic version on:
    • ✅Windows (MSVC & Clang)
    • ✅Ubuntu (gcc)

@OliverGlandberger OliverGlandberger marked this pull request as ready for review February 18, 2025 09:04
@qjgn qjgn requested a review from EmilRosenquist February 19, 2025 09:17
@qjgn
Copy link
Contributor

qjgn commented Feb 19, 2025

Suggestion: Configure the tests to consume all of the different linking options. Use cmake presets to setup easy execution of the tests with those options.

Edit:
Resolved by #119

OliverGlandberger and others added 4 commits February 20, 2025 09:23
* Added cmake parameter qualisys_cpp_sdk_OUTPUT_TYPE

Replaced qualisys_cpp_sdk_BUILD_SHARED and qualisys_cpp_sdk_BUILD_SHARED_VERSIONED with qualisys_cpp_sdk_OUTPUT_TYPE

* Added output_type to build actions
@OliverGlandberger OliverGlandberger merged commit bd7819f into master Feb 20, 2025
10 checks passed
@qjgn qjgn deleted the dynamic_build_fPiC_flag_and_release_suffix_option branch February 20, 2025 14:53
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.

4 participants