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

index c06bc04b013726ab39521ae1a02597e9d6774560..5c9b8dbd52bb25c101bf18b42a44f212f4d240c5 100644 (file)
@@ -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}")