Skip to content

Commit 965b89c

Browse files
committed
Merge pull request #269 from larshg/findglfwfixes
Added default install path to glfw on windows
2 parents 9cf5360 + 95b1c06 commit 965b89c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

examples/protonect/cmake_modules/FindGLFW3.cmake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@
88
include(FindPackageHandleStandardArgs)
99

1010
IF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
11-
find_path(GLFW3_INCLUDE_DIRS glfw/glfw3.h DOC "GLFW include directory " HINTS $ENV{GLFW_ROOT}/include)
11+
find_path(GLFW3_INCLUDE_DIRS
12+
glfw/glfw3.h
13+
DOC "GLFW include directory "
14+
PATHS $ENV{ProgramW6432}/glfw/include $ENV{GLFW_ROOT}/include)
1215

13-
find_library(GLFW3_LIBRARIES NAMES glfw3dll.lib HINTS $ENV{GLFW_ROOT}/lib/)
16+
find_library(GLFW3_LIBRARIES
17+
NAMES glfw3.lib glfw3dll.lib
18+
PATHS $ENV{ProgramW6432}/glfw/lib/ $ENV{GLFW_ROOT}/lib/)
1419
ENDIF()
1520

1621
find_package_handle_standard_args(GLFW3 "Could not find GLFW3 - try adding GLFW_ROOT in enviroment variables." GLFW3_INCLUDE_DIRS GLFW3_LIBRARIES)

0 commit comments

Comments
 (0)