[cmake-developers] [CMake 0015648]: FindXercesC.cmake does not work on Windows

Mantis Bug Tracker mantis at public.kitware.com
Mon Jul 13 04:38:03 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15648 
====================================================================== 
Reported By:                Martin Baute
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15648
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-07-13 04:38 EDT
Last Modified:              2015-07-13 04:38 EDT
====================================================================== 
Summary:                    FindXercesC.cmake does not work on Windows
Description: 
The FindXercesC module shipping with CMake is rather simple. It looks for the
Xerces-C library using this line:

find_library( XercesC_LIBRARY "xerces-c" DOC "Xerces-C++ libraries" )

This does not work on Windows -- here, the Xerces-C library is named
xerces-c_3.lib (or ...-c_3D.lib for the debug build), making FindXercesC.cmake
fail with "XercesC_LIBRARY-NOTFOUND".

Suggested fix would be using this line:

find_library( XercesC_LIBRARY NAMES xerces-c xerces-c_3 xerces-c_2 DOC
"Xerces-C++ libraries" )

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-07-13 04:38 Martin Baute   New Issue                                    
======================================================================



More information about the cmake-developers mailing list