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

index cfee8962aadb2053f643a048a0b13f2c11045d00..7d0fa0fa4e4dc2bc7b8dd4a1804e7bae706b84f9 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