From 64dc597e42dee590a872b9cd720faeae40613982 Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Wed, 30 Oct 2019 14:54:12 -0400 Subject: [PATCH] pleorasrc: search for eBUS SDK in PUREGEV_ROOT first --- cmake/modules/FindPleora.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/modules/FindPleora.cmake b/cmake/modules/FindPleora.cmake index 5c24461..75ded9b 100644 --- a/cmake/modules/FindPleora.cmake +++ b/cmake/modules/FindPleora.cmake @@ -12,7 +12,7 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (NOT PLEORA_DIR) - set (PLEORA_DIR "C:/Program Files (x86)/Pleora Technologies Inc/eBUS SDK" CACHE PATH "Directory containing Pleora SDK includes and libraries") + set (PLEORA_DIR $ENV{PUREGEV_ROOT} CACHE PATH "Directory containing Pleora SDK includes and libraries") endif () if (CMAKE_SIZEOF_VOID_P MATCHES "8") @@ -24,11 +24,15 @@ endif () find_path (PLEORA_INCLUDE_DIR PvBase.h PATHS "${PLEORA_DIR}/Includes" + "C:/Program Files/Pleora Technologies Inc/eBUS SDK/Includes" + "C:/Program Files (x86)/Pleora Technologies Inc/eBUS SDK/Includes" DOC "Directory containing Pleora eBUS SDK headers") find_path (PLEORA_LIBRARIES_DIR PvBase${_LIB_SUFFIX}.lib PATHS "${PLEORA_DIR}/Libraries" + "C:/Program Files/Pleora Technologies Inc/eBUS SDK/Libraries" + "C:/Program Files (x86)/Pleora Technologies Inc/eBUS SDK/Libraries" DOC "Directory containing Pleora eBUS SDK libraries") include (FindPackageHandleStandardArgs)