From: rnv Date: Mon, 22 Jun 2020 11:21:33 +0000 (+0300) Subject: Build with native prerequsites X-Git-Tag: V9_6_0a1~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=477007776a86ed2cc26d54271e2a75e857eebdf3;p=modules%2Fshaper.git Build with native prerequsites --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a6942ba5d..3ef061f23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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