X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=CMakeCommon%2FXMLProcessing.cmake;h=a71c3ea69fb61c1de429afc47e50412b344fe06f;hb=cfbcedf4020c69d1a92f4d0f52032893732630b0;hp=5276cf04038423651933d113e165a1cb68057c8f;hpb=0b97b703fee752adb19b71fa11983f0c51b54b87;p=modules%2Fshaper.git diff --git a/CMakeCommon/XMLProcessing.cmake b/CMakeCommon/XMLProcessing.cmake index 5276cf040..a71c3ea69 100644 --- a/CMakeCommon/XMLProcessing.cmake +++ b/CMakeCommon/XMLProcessing.cmake @@ -1,28 +1,22 @@ -SET(LIBXMLDIR $ENV{LIBXML2_ROOT_DIR}) - -IF(WIN32) - INCLUDE_DIRECTORIES(${LIBXMLDIR}/include) -ELSE() - INCLUDE_DIRECTORIES(${LIBXMLDIR}/include/libxml2) -ENDIF(WIN32) - -LINK_DIRECTORIES (${LIBXMLDIR}/lib) - -IF(WIN32) - SET(LIBXML2_LIBRARIES ${LIBXMLDIR}/lib/libxml2.lib) - INCLUDE_DIRECTORIES(${LIBXMLDIR}/include/libxml2) -ELSE() - SET(LIBXML2_LIBRARIES ${LIBXMLDIR}/lib/libxml2.so) - SET(LIBXML2_INCLUDE_DIR ${LIBXMLDIR}/include/libxml2) - FIND_PACKAGE(LibXml2 REQUIRED) - if(LIBXML2_FOUND) - message(STATUS "Found libxml2 ver. " ${LIBXML2_VERSION_STRING}) - message(STATUS "LIBXML2_LIBRARIES " ${LIBXML2_LIBRARIES}) - message(STATUS "LIBXML2_INCLUDE_DIR " ${LIBXML2_INCLUDE_DIR}) - endif(LIBXML2_FOUND) - - INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR}) - ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) -ENDIF() -LINK_DIRECTORIES (${LIBXMLDIR}/lib) +# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# +ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) +INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR}) +LINK_DIRECTORIES (${LIBXML2_LIBRARIES})