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