]> SALOME platform Git repositories - modules/kernel.git/blob - salome_adm/cmake_files/FindSalomeLIBXML2.cmake
Salome HOME
Correction of path to temporary script to remove it successfully.
[modules/kernel.git] / salome_adm / cmake_files / FindSalomeLIBXML2.cmake
1 # Copyright (C) 2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # LIBXML2 detection for Salome
21
22 set(LIBXML2_ROOT_DIR $ENV{LIBXML2_ROOT_DIR} CACHE PATH "Path to LibXml2 directory")
23 if(EXISTS ${LIBXML2_ROOT_DIR})
24   set(CMAKE_INCLUDE_PATH ${LIBXML2_ROOT_DIR}/include)
25   set(CMAKE_LIBRARY_PATH ${LIBXML2_ROOT_DIR}/lib)
26   set(CMAKE_PROGRAM_PATH ${LIBXML2_ROOT_DIR}/bin)
27 endif(EXISTS ${LIBXML2_ROOT_DIR})
28 find_package(LibXml2 REQUIRED)
29 #if(${LIBXML2_VERSION_STRING} VERSION_LESS "2.7.6")
30 #  message(FATAL_ERROR "LIbXml2 required version is 2.7.6, version is ${LIBXML2_VERSION_STRING} , please defined LIBXML2_ROOT_DIR as environment or cmake variable")
31 #endif(${LIBXML2_VERSION_STRING} VERSION_LESS "2.7.6")