From ebd77cf510beb225b81cb1d181ff00a6de5ec52d Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 15 Sep 2017 14:26:16 +0300 Subject: [PATCH] Treat OCCTPRODUCTS_ROOT_DIR variable additionally. --- adm_local/cmake_files/FindCR.cmake | 7 +++++++ 1 file changed, 7 insertions(+) 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}") -- 2.39.2