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