]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Build with native prerequsites
authorrnv <rnv@opencascade.com>
Mon, 22 Jun 2020 11:21:33 +0000 (14:21 +0300)
committervsr <vsr@opencascade.com>
Wed, 29 Jul 2020 12:57:21 +0000 (15:57 +0300)
CMakeLists.txt

index a6942ba5d6a2d53e5936cd14e23c082b03c7542f..3ef061f230ebb1e1d577ae9481a02f2d708d4c59 100644 (file)
@@ -82,8 +82,10 @@ IF(DEFINED ENV{LIBXML2_ROOT_DIR})
         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)
-        FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/include/libxml2 LIBXML2_INCLUDE_DIR)
+        IF(NOT "$ENV{LIBXML2_ROOT_DIR}" STREQUAL "/usr")
+            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()
 ENDIF()
 # It could be called only once