]> SALOME platform Git repositories - plugins/xtplugin.git/commitdiff
Salome HOME
Treat OCCTPRODUCTS_ROOT_DIR variable additionally.
authorvsr <vsr@opencascade.com>
Fri, 15 Sep 2017 11:25:59 +0000 (14:25 +0300)
committervsr <vsr@opencascade.com>
Fri, 15 Sep 2017 11:25:59 +0000 (14:25 +0300)
adm_local/cmake_files/FindXT.cmake

index 4766bd6fa08ac95ad81dc1ee61104ded91dddcfb..1ef299dbf56332596986d1d959ff5ec5d0bd3fcc 100644 (file)
@@ -31,7 +31,14 @@ MESSAGE(STATUS "Check for OCCT Parasolid XDE product ...")
 # ------
 
 SET(XT_ROOT_DIR $ENV{XT_ROOT_DIR})
+IF(NOT XT_ROOT_DIR)
+  SET(XT_ROOT_DIR $ENV{OCCTPRODUCTS_ROOT_DIR})
+ENDIF()
+
 SET(OCCLICENSE_ROOT_DIR $ENV{OCCLICENSE_ROOT_DIR})
+IF(NOT OCCLICENSE_ROOT_DIR)
+  SET(OCCLICENSE_ROOT_DIR $ENV{OCCTPRODUCTS_ROOT_DIR})
+ENDIF()
 
 IF(XT_ROOT_DIR)
   LIST(APPEND CMAKE_PREFIX_PATH "${XT_ROOT_DIR}")