From: vsr Date: Fri, 15 Sep 2017 11:25:11 +0000 (+0300) Subject: Treat OCCTPRODUCTS_ROOT_DIR variable additionally. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b43a24a77bd97569e98eaf4dd8a8ce3e00aceb0e;p=plugins%2Facisplugin.git Treat OCCTPRODUCTS_ROOT_DIR variable additionally. --- diff --git a/adm_local/cmake_files/FindACIS.cmake b/adm_local/cmake_files/FindACIS.cmake index ec4195e..1c7f3a7 100644 --- a/adm_local/cmake_files/FindACIS.cmake +++ b/adm_local/cmake_files/FindACIS.cmake @@ -31,7 +31,14 @@ MESSAGE(STATUS "Check for OCCT ACIS/SAT XDE product ...") # ------ SET(ACIS_ROOT_DIR $ENV{ACIS_ROOT_DIR}) +IF(NOT ACIS_ROOT_DIR) + SET(ACIS_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(ACIS_ROOT_DIR) LIST(APPEND CMAKE_PREFIX_PATH "${ACIS_ROOT_DIR}")