From 2ca513570509bede657d800f8594d04b78d4b75d Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 23 Dec 2016 14:52:56 +0300 Subject: [PATCH] Fix for VisInspector --- CMakeCommon/FindVInspector.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeCommon/FindVInspector.cmake b/CMakeCommon/FindVInspector.cmake index f548c46df..fcd7db44f 100644 --- a/CMakeCommon/FindVInspector.cmake +++ b/CMakeCommon/FindVInspector.cmake @@ -14,9 +14,9 @@ IF(NOT VINSPECTOR_FIND_QUIETLY) ENDIF() SET(VINSPECTOR_ROOT_DIR $ENV{VINSPECTOR_ROOT_DIR} CACHE PATH "Path to the VInspector directory") -IF(EXISTS ${VINSPECTOR_ROOT_DIR}) - SET(VINSPECTOR_INCLUDE_DIR "${VINSPECTOR_ROOT_DIR}/include") - SET(VINSPECTOR_LIB_DIR "${VINSPECTOR_ROOT_DIR}/lib") +IF(EXISTS $ENV{VINSPECTOR_ROOT_DIR}) + SET(VINSPECTOR_INCLUDE_DIR "$ENV{VINSPECTOR_ROOT_DIR}/include") + SET(VINSPECTOR_LIB_DIR "$ENV{VINSPECTOR_ROOT_DIR}/lib") FIND_LIBRARY(VInspectorAPI VInspectorAPI "${VINSPECTOR_LIB_DIR}") IF(VInspectorAPI) @@ -26,4 +26,4 @@ IF(EXISTS ${VINSPECTOR_ROOT_DIR}) MESSAGE(STATUS "VInspector lib dir at ${VINSPECTOR_LIB_DIR}") ENDIF(VInspectorAPI) -ENDIF(EXISTS ${VINSPECTOR_ROOT_DIR}) +ENDIF(EXISTS $ENV{VINSPECTOR_ROOT_DIR}) -- 2.39.2