From d69e0be5ea81ad877d4e8f048596d6fcc7f1003f Mon Sep 17 00:00:00 2001 From: fherrero <fherrero@iri.upc.edu> Date: Wed, 13 May 2020 09:35:07 +0200 Subject: [PATCH] Update Find cmake template: remove system directories and search first in /local/ directories. --- Findlib_template.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Findlib_template.cmake b/Findlib_template.cmake index d9ec660..53e2a17 100755 --- a/Findlib_template.cmake +++ b/Findlib_template.cmake @@ -1,10 +1,10 @@ #edit the following line to add the librarie's header files SET(name library_name) -FIND_PATH(${name}_INCLUDE_DIRS ${name}.h /usr/include/iri/${name} /usr/local/include/iri/${name}) +FIND_PATH(${name}_INCLUDE_DIRS ${name}.h /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}) -- GitLab