Skip to content

Allow static builds#43

Merged
d-b-w merged 3 commits intoschrodinger:masterfrom
ricrogz:allow_static_builds
Dec 9, 2019
Merged

Allow static builds#43
d-b-w merged 3 commits intoschrodinger:masterfrom
ricrogz:allow_static_builds

Conversation

@ricrogz
Copy link
Copy Markdown
Collaborator

@ricrogz ricrogz commented Dec 3, 2019

This PR implements an option to switch between building shared and static libraries. This is more or less the same I did in maeparser (schrodinger/maeparser#57). Please note that this PR depends on the one in maeparser, and should not be merged before that one.

  • Added the COORDGEN_BUILD_SHARED_LIBS flag: ON == shared library, OFF == static. The required dependencies (boost, zlib), as well as the unit tests, will use the same linking type as specified by the flag. If maeparser needs to be built from source, it will also use the same linking type as indicated here.

  • In the tests: removed the BOOST_TEST_DYN_LINK macro.

  • Added some new Azure pipelines to build static libs. These have also been reformatted, looking like bigger changes that they actually are.

These changes have also been tested in my CI builds (https://dev.azure.com/ricrogz/mycoordgen/_build/results?buildId=391).

Please note that the Travis and appveyor builds do neither exercise the static builds.

As mentioned in the maeparser PR, I tested that, one these changes are live in maeparser and coordgen, RDKit and Openbabel won't break, and will still be able to build without any changes.

@d-b-w d-b-w merged commit a44eddf into schrodinger:master Dec 9, 2019
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.

2 participants