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:
parent
5f7c5173ca
commit
bdd18cb2bc
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue