Skip to content

pkg-config file: remember shared/static#580

Merged
ax3l merged 1 commit intoopenPMD:devfrom
ax3l:topic-rememberStaticPCfile
Oct 30, 2019
Merged

pkg-config file: remember shared/static#580
ax3l merged 1 commit intoopenPMD:devfrom
ax3l:topic-rememberStaticPCfile

Conversation

@ax3l
Copy link
Member

@ax3l ax3l commented Oct 29, 2019

Since we only build either a shared or a static variant of openPMD-api, let pkg-config users (#532 #535) query which variant was found.

pkg-config --variable=static openPMD
# true or false

CMake downstream users can either query the TYPE property of the imported openPMD::openPMD target or prefer static library types in find_package in case they want to check/force a certain variant.

Since we only build either a shared or a static variant of
openPMD-api, let pkg-config users query which variant was found.

```shell
pkg-config --variable=static openPMD
```

CMake downstream users can either query the `TYPE` property of
the imported `openPMD::openPMD` target or prefer static library
types in `find_package` in case they want to check/force a
certain variant.
@ax3l ax3l added the install label Oct 29, 2019
@ax3l ax3l merged commit 9c28d83 into openPMD:dev Oct 30, 2019
@ax3l ax3l deleted the topic-rememberStaticPCfile branch October 30, 2019 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant