Skip to content

[FIX] Find Xerces module and pyOpenMS CMakeLists - #3275

Merged
timosachsenberg merged 2 commits into
OpenMS:developfrom
jpfeuffer:fix/pyopenmsXercesWin
Mar 1, 2018
Merged

timosachsenberg merged 2 commits into
OpenMS:developfrom
jpfeuffer:fix/pyopenmsXercesWin

Conversation

@jpfeuffer

Copy link
Copy Markdown
Contributor
  • Makes finding in pyOpenMS more generic
  • Let's FindXerces prefer contrib
  • Removes potentially harmful non-suffixed name from debug libraries.

…t_library_config will do that for us. It just increases chances that two different libraries are found on non-win systems otherwise.
@hroest

hroest commented Mar 1, 2018

Copy link
Copy Markdown
Contributor

looks good, 👍

find_library(XercesC_LIBRARY_DEBUG NAMES xerces-c xerces-c_3D xerces-c_3_1D xerces-c-3.1D xerces-c_3_2D xerces-c-3.2D ${_XercesC_PATHS} PATH_SUFFIXES lib)
## The NAMES_PER_DIR option will make sure that the PATHS are the "outer for loop" when searching for the libraries.
## We want that because we put the contrib as the first search path usually.
find_library(XercesC_LIBRARY_RELEASE NAMES xerces-c xerces-c_3 xerces-c_3_1 xerces-c-3.1 xerces-c_3_2 xerces-c-3.2 NAMES_PER_DIR ${_XercesC_PATHS} PATH_SUFFIXES lib)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still look for the old versions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes otherwise we exclude most system contribs right?

@timosachsenberg
timosachsenberg merged commit a3d7b91 into OpenMS:develop Mar 1, 2018
@jpfeuffer
jpfeuffer deleted the fix/pyopenmsXercesWin branch October 7, 2019 09:48
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.

3 participants