Skip to content
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

Setup public headers #181

Merged

Conversation

SylvainCorlay
Copy link
Member

No description provided.

@SylvainCorlay
Copy link
Member Author

The CI is complaining the PUBLIC_HEADER is not a whitelisted property for INTERFACE libraries.

INTERFACE_LIBRARY targets may only have whitelisted properties.  The
  property "PUBLIC_HEADER" is not allowed.

I don't understand why the problem is not occuring in the pybind11_json PR pybind/pybind11_json#13

@JohanMabille
Copy link
Member

Can you try to update minimal required version of cmake to 3.4.3? Not sure it will fix the issue, but it might be worth trying it.

@SylvainCorlay
Copy link
Member Author

This seems to have been fixed in a recent version of cmake:
https://gitlab.kitware.com/cmake/cmake/issues/15234

@SylvainCorlay
Copy link
Member Author

It is working on Linux and windows (appveyor), but not on OS X or on Windows with azure.

@SylvainCorlay
Copy link
Member Author

OK, setting up the PUBLIC_HEADER property on an INTERFACE library is allowed since cmake 3.15.

https://cmake.org/cmake/help/v3.15/release/3.15.html#properties

@SylvainCorlay
Copy link
Member Author

@JohanMabille this is ready to go.

@JohanMabille JohanMabille merged commit 03a3086 into xtensor-stack:master Dec 17, 2019
@SylvainCorlay SylvainCorlay deleted the setup-public-headers branch December 17, 2019 17:43
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.

None yet

2 participants