Repository navigation
[FIX] Find Xerces module and pyOpenMS CMakeLists - #3275
Merged
Merged
Conversation
jpfeuffer
commented
Mar 1, 2018
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.
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) |
Contributor
There was a problem hiding this comment.
still look for the old versions?
Contributor
Author
There was a problem hiding this comment.
Yes otherwise we exclude most system contribs right?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.