Skip to content

Ensure GPRT respects GPRT_BUILD_SHARED - #84

Open
Waqar-ukaea wants to merge 1 commit into
gprt-org:masterfrom
Waqar-ukaea:respect-gprt-build-shared
Open

Ensure GPRT respects GPRT_BUILD_SHARED #84
Waqar-ukaea wants to merge 1 commit into
gprt-org:masterfrom
Waqar-ukaea:respect-gprt-build-shared

Conversation

@Waqar-ukaea

@Waqar-ukaea Waqar-ukaea commented May 14, 2026

Copy link
Copy Markdown
Contributor

The CMake option GPRT_BUILD_SHARED seems to imply that when set to ON GPRT should be built as a shared library and otherwise a static library. But as far as I can tell, irrespective of the value of this CMake option GPRT always builds as a static library as the gprt\CMakeLists.txt contains an untyped call to add_library(gprt).

This PR makes the call explicitly scoped depending on the value of this option.

I am unsure if the original behaviour was intended or if this is something that was missed prior?

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.

1 participant