Skip to content

Commit

Permalink
Fix GLFW build
Browse files Browse the repository at this point in the history
  • Loading branch information
xelatihy committed Sep 14, 2020
1 parent f7b52ff commit ccdc7ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions exts/CMakeLists.txt
@@ -1,3 +1,9 @@
if(YOCTO_OPENGL)

set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL " " FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL " " FORCE)
set(GLFW_BUILD_DOCS OFF CACHE BOOL " " FORCE)
set(GLFW_INSTALL OFF CACHE BOOL " " FORCE)
add_subdirectory(glfw)

endif(YOCTO_OPENGL)
4 changes: 0 additions & 4 deletions libs/yocto_gui/CMakeLists.txt
@@ -1,10 +1,6 @@
if(YOCTO_OPENGL)
add_definitions(-DYOCTO_OPENGL)
find_package(OpenGL REQUIRED)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL " " FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL " " FORCE)
set(GLFW_BUILD_DOCS OFF CACHE BOOL " " FORCE)
set(GLFW_INSTALL OFF CACHE BOOL " " FORCE)

add_library(yocto_gui
yocto_opengl.h
Expand Down

0 comments on commit ccdc7ca

Please sign in to comment.