]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix pb of compilation with native libxml2 (Mandriva 2010) vsr/libxml2_mdv
authorvsr <vsr@opencascade.com>
Fri, 13 Nov 2015 08:13:58 +0000 (11:13 +0300)
committervsr <vsr@opencascade.com>
Fri, 13 Nov 2015 08:13:58 +0000 (11:13 +0300)
CMakeCommon/XMLProcessing.cmake

index 16a3f11bac9fcd54ddb5ef95a2a38c37a3220f39..36eec9b26deaa38496e03712b3f0eb8731d0a598 100644 (file)
@@ -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)