Commit 585433a1 authored by Johan Ström's avatar Johan Ström

Added OpenZWave_CUSTOM_INCLUDE to point to custom openzwave installation dir...

Added OpenZWave_CUSTOM_INCLUDE to point to custom openzwave installation dir for experimental builds
parent 04702460
Pipeline #469 failed with stage
in 13 seconds
......@@ -5,17 +5,24 @@
# OpenZWave_LIBRARIES, the libraries to link against to use it
# OpenZWave_FOUND, If false, do not try to use it
# Allow override
FIND_PATH(OpenZWave_INCLUDE_BASE_DIR openzwave/Manager.h
/usr/local/include
/usr/include
PATHS ${OpenZWave_CUSTOM_INCLUDE} NO_DEFAULT_PATH)
FIND_PATH(OpenZWave_INCLUDE_BASE_DIR openzwave/Manager.h
PATHS /usr/local/include /usr/include
)
FIND_LIBRARY(OpenZWave_LIBRARIES openzwave PATHS ${OpenZWave_INCLUDE_BASE_DIR}/../lib NO_DEFAULT_PATH)
FIND_LIBRARY(OpenZWave_LIBRARIES openzwave
${OpenZWave_INCLUDE_BASE_DIR}/../lib
/usr/local/lib
/usr/local/lib64
/usr/lib)
if(DEFINED "OpenZWave_CUSTOM_INCLUDE" AND NOT OpenZWave_CUSTOM_INCLUDE STREQUAL OpenZWave_INCLUDE_BASE_DIR)
message(FATAL_ERROR "Custom OpenZWave path ${OpenZWave_CUSTOM_INCLUDE} was specified, but it was not found/used (found: ${OpenZWave_INCLUDE_BASE_DIR})")
endif()
if(OpenZWave_INCLUDE_BASE_DIR)
IF(OpenZWave_LIBRARIES)
set(OpenZWave_FOUND "YES")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment