From 49940fc2fea5d3075b25fc04015c5603c55f7245 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 15 Sep 2017 14:25:59 +0300 Subject: [PATCH] Treat OCCTPRODUCTS_ROOT_DIR variable additionally. --- adm_local/cmake_files/FindXT.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/adm_local/cmake_files/FindXT.cmake b/adm_local/cmake_files/FindXT.cmake index 4766bd6..1ef299d 100644 --- a/adm_local/cmake_files/FindXT.cmake +++ b/adm_local/cmake_files/FindXT.cmake @@ -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}") -- 2.39.2