From: vsr Date: Fri, 15 Sep 2017 11:26:16 +0000 (+0300) Subject: Treat OCCTPRODUCTS_ROOT_DIR variable additionally. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ebd77cf510beb225b81cb1d181ff00a6de5ec52d;p=plugins%2Fcanrecplugin.git Treat OCCTPRODUCTS_ROOT_DIR variable additionally. --- diff --git a/adm_local/cmake_files/FindCR.cmake b/adm_local/cmake_files/FindCR.cmake index c06bc04..5c9b8db 100644 --- a/adm_local/cmake_files/FindCR.cmake +++ b/adm_local/cmake_files/FindCR.cmake @@ -31,7 +31,14 @@ MESSAGE(STATUS "Check for OCCT Canonical recognition product ...") # ------ SET(CR_ROOT_DIR $ENV{CR_ROOT_DIR}) +IF(NOT CR_ROOT_DIR) + SET(CR_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(CR_ROOT_DIR) LIST(APPEND CMAKE_PREFIX_PATH "${CR_ROOT_DIR}")