Merge topic 'FindXercesC-updates'

db292564 FindXercesC: Add support for 3D_1 variant of the library
021bf871 FindXercesC: Find debug and release libraries separately
This commit is contained in:
Brad King 2015-08-17 10:24:55 -04:00 committed by CMake Topic Stage
commit 9cba05c684
2 changed files with 17 additions and 4 deletions

View File

@ -0,0 +1,5 @@
FindXercesC-updates
-------------------
* The :module:`FindXercesC` module learned to search separately for
debug and release variants.

View File

@ -61,10 +61,18 @@ find_path(XercesC_INCLUDE_DIR
DOC "Xerces-C++ include directory")
mark_as_advanced(XercesC_INCLUDE_DIR)
if(NOT XercesC_LIBRARY)
# Find all XercesC libraries
find_library(XercesC_LIBRARY NAMES "xerces-c" "xerces-c_3" "xerces-c_2"
DOC "Xerces-C++ libraries")
mark_as_advanced(XercesC_LIBRARY)
find_library(XercesC_LIBRARY_RELEASE
NAMES "xerces-c" "xerces-c_3"
DOC "Xerces-C++ libraries (release)")
find_library(XercesC_LIBRARY_DEBUG
NAMES "xerces-cd" "xerces-c_3D" "xerces-c_3_1D"
DOC "Xerces-C++ libraries (debug)")
include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
select_library_configurations(XercesC)
mark_as_advanced(XercesC_LIBRARY_RELEASE XercesC_LIBRARY_DEBUG)
endif()
if(XercesC_INCLUDE_DIR)
_XercesC_GET_VERSION("${XercesC_INCLUDE_DIR}/xercesc/util/XercesVersion.hpp")