From: vsr Date: Fri, 13 Nov 2015 08:13:58 +0000 (+0300) Subject: Fix pb of compilation with native libxml2 (Mandriva 2010) X-Git-Tag: V_2.1.0~242^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fvsr%2Flibxml2_mdv;p=modules%2Fshaper.git Fix pb of compilation with native libxml2 (Mandriva 2010) --- diff --git a/CMakeCommon/XMLProcessing.cmake b/CMakeCommon/XMLProcessing.cmake index 16a3f11ba..36eec9b26 100644 --- a/CMakeCommon/XMLProcessing.cmake +++ b/CMakeCommon/XMLProcessing.cmake @@ -1,12 +1,14 @@ ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D -IF(WIN32) - FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/lib/libxml2.lib LIBXML2_LIBRARIES) +IF(DEFINED ENV{LIBXML2_ROOT_DIR}) + IF(WIN32) + FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/lib/libxml2.lib LIBXML2_LIBRARIES) FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/include LIBXML2_INCLUDE_DIR) -ELSE() - FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/lib/libxml2.so LIBXML2_LIBRARIES) + ELSE() + FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/lib/libxml2.so LIBXML2_LIBRARIES) FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/include/libxml2 LIBXML2_INCLUDE_DIR) + ENDIF() ENDIF() FIND_PACKAGE(LibXml2 REQUIRED)