/[soft]/mgasvnstats/trunk/cmake/modules/FindPugiXML.cmake
ViewVC logotype

Annotation of /mgasvnstats/trunk/cmake/modules/FindPugiXML.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6857 - (hide annotations) (download)
Tue Dec 25 14:52:28 2012 UTC (9 years, 6 months ago) by kamil
File size: 672 byte(s)
Fix find_path macro.
1 kamil 6856 # Copyrigt 2012 Kamil Rytarowski <kamil AT mageia DOT org>
2     #
3     # This Source Code Form is subject to the terms of the Mozilla Public
4     # License, v. 2.0. If a copy of the MPL was not distributed with this
5     # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6    
7 kamil 6857 find_path(PugiXML_INCLUDE_DIR pugixml.hpp /usr/include)
8 kamil 6856
9     find_library(PugiXML_LIBRARY
10     NAMES
11     "pugixml"
12     PATHS
13     /usr/lib
14     )
15    
16     if(PugiXML_LIBRARY AND PugiXML_INCLUDE_DIR)
17     set(PugiXML_FOUND 1)
18     mark_as_advanced(PugiXML_LIBRARY PugiXML_INCLUDE_DIR)
19     else()
20     set(PugiXML_FOUND 0)
21     endif()
22    
23     if(NOT PugiXML_FOUND)
24     if(PugiXML_FIND_REQUIRED)
25     message(FATAL_ERROR "PugiXML was not found.")
26     endif()
27     endif()

  ViewVC Help
Powered by ViewVC 1.1.28