From 412f11086aa53b0527eac115b7b854e75a65a823 Mon Sep 17 00:00:00 2001 From: fherrero <fherrero@iri.upc.edu> Date: Wed, 13 May 2020 12:55:45 +0200 Subject: [PATCH] Update Find cmake with correct paths and path order --- Findmvbluefox3.cmake | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Findmvbluefox3.cmake b/Findmvbluefox3.cmake index b5b12f6..5138cc1 100644 --- a/Findmvbluefox3.cmake +++ b/Findmvbluefox3.cmake @@ -2,12 +2,12 @@ SET(name mvbluefox3) #edit the following line to add the librarie's header files SET(header_files mvbluefox3.h mvbluefox_mvfunc.h mvbluefox_settings.h) -FIND_PATH(${name}_INCLUDE_DIRS ${header_files} /usr/include/iri/${name} /usr/local/include/iri/${name}) +FIND_PATH(${name}_INCLUDE_DIRS ${header_files} /usr/local/include/iri/${name} /usr/include/iri/${name}) FIND_LIBRARY(${name}_LIBRARIES NAMES ${name} - PATHS /usr/lib /usr/lib/iri/${name} /usr/local/lib /usr/local/lib/iri/${name}) - + PATHS /usr/local/lib/iri/${name} /usr/lib/iri/${name}) + SET(${name}_INCLUDE_DIR ${${name}_INCLUDE_DIRS}) SET(${name}_LIBRARY ${${name}_LIBRARIES}) @@ -23,5 +23,4 @@ ELSE (${name}_FOUND) IF (${name}_FIND_REQUIRED) MESSAGE(FATAL_ERROR "Could not find ${name}") ENDIF (${name}_FIND_REQUIRED) -ENDIF (${name}_FOUND) - +ENDIF (${name}_FOUND) \ No newline at end of file -- GitLab