Skip to content

Commit 18a5f7b

Browse files
committed
Fix builtin usage of GLEW
1 parent 6d580aa commit 18a5f7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

builtins/glew/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ unset(GLEW_FOUND CACHE)
2424
unset(GLEW_FOUND PARENT_SCOPE)
2525
set(GLEW_FOUND TRUE CACHE BOOL "" FORCE)
2626

27+
# chnage variable and cache to ensure that cmake use builtin version
28+
set(GLEW_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/inc PARENT_SCOPE)
29+
set(GLEW_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/inc PARENT_SCOPE)
30+
31+
2732
set(GLEW_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/inc CACHE INTERNAL "" FORCE)
2833
set(GLEW_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/inc CACHE INTERNAL "" FORCE)
2934

0 commit comments

Comments
 (0)