gr-fosphor/cmake: Use HINTS rather than PATHS for path from pkg-config

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Michael Dickens 2013-12-06 13:16:02 +01:00 committed by Sylvain Munaut
parent 5f7c5173ca
commit bdd18cb2bc
2 changed files with 4 additions and 4 deletions

View File

@ -2,15 +2,15 @@ if(NOT FREETYPE2_FOUND)
INCLUDE(FindPkgConfig)
pkg_check_modules (FREETYPE2_PKG freetype2)
find_path(FREETYPE2_INCLUDE_DIRS NAMES freetype/freetype.h
HINTS ${FREETYPE2_PKG_INCLUDE_DIRS}
PATHS
${FREETYPE2_PKG_INCLUDE_DIRS}
/usr/include/freetype2
/usr/local/include/freetype2
)
find_library(FREETYPE2_LIBRARIES NAMES freetype
HINTS ${FREETYPE2_PKG_LIBRARY_DIRS}
PATHS
${FREETYPE2_PKG_LIBRARY_DIRS}
/usr/lib
/usr/local/lib
)

View File

@ -2,15 +2,15 @@ if(NOT GLFW3_FOUND)
INCLUDE(FindPkgConfig)
pkg_check_modules (GLFW3_PKG glfw3)
find_path(GLFW3_INCLUDE_DIRS NAMES GLFW/glfw3.h
HINTS ${GLFW3_PKG_INCLUDE_DIRS}
PATHS
${GLFW3_PKG_INCLUDE_DIRS}
/usr/include
/usr/local/include
)
find_library(GLFW3_LIBRARIES NAMES glfw3 glfw
HINTS ${GLFW3_PKG_LIBRARY_DIRS}
PATHS
${GLFW3_PKG_LIBRARY_DIRS}
/usr/lib
/usr/local/lib
)