aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2016-05-22 22:07:30 +0200
committerSylvain Munaut <tnt@246tNt.com>2016-05-22 22:34:22 +0200
commit249434d0206e4f796da914b040ed508402aa2e10 (patch)
tree13953cc2afc9b9a0f73fadfee5fa8c9679b219a5
parent0c4bd380ef99426fed00423c889243ad8ad709c7 (diff)
gr-fosphor: Minor tweaks to FindGLFW3
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--cmake/Modules/FindGLFW3.cmake14
1 files changed, 5 insertions, 9 deletions
diff --git a/cmake/Modules/FindGLFW3.cmake b/cmake/Modules/FindGLFW3.cmake
index c6e9395..edd76c6 100644
--- a/cmake/Modules/FindGLFW3.cmake
+++ b/cmake/Modules/FindGLFW3.cmake
@@ -1,18 +1,14 @@
if(NOT GLFW3_FOUND)
INCLUDE(FindPkgConfig)
- pkg_check_modules (GLFW3_PKG glfw3)
- find_path(GLFW3_INCLUDE_DIRS NAMES GLFW/glfw3.h
+ pkg_check_modules(GLFW3_PKG glfw3)
+ find_path(GLFW3_INCLUDE_DIRS
+ NAMES GLFW/glfw3.h
HINTS ${GLFW3_PKG_INCLUDE_DIRS}
- PATHS
- /usr/include
- /usr/local/include
)
- find_library(GLFW3_LIBRARIES NAMES glfw3 glfw
+ find_library(GLFW3_LIBRARIES
+ NAMES ${GLFW3_PKG_LIBRARIES} glfw3 glfw
HINTS ${GLFW3_PKG_LIBRARY_DIRS}
- PATHS
- /usr/lib
- /usr/local/lib
)
if(GLFW3_INCLUDE_DIRS AND GLFW3_LIBRARIES)