From ccdc7caacd7af6410fde8bdc58de413fc2119aba Mon Sep 17 00:00:00 2001 From: Fabio Pellacini Date: Mon, 14 Sep 2020 09:37:29 +0200 Subject: [PATCH] Fix GLFW build --- exts/CMakeLists.txt | 6 ++++++ libs/yocto_gui/CMakeLists.txt | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/exts/CMakeLists.txt b/exts/CMakeLists.txt index fe061dc72..40f393560 100644 --- a/exts/CMakeLists.txt +++ b/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) diff --git a/libs/yocto_gui/CMakeLists.txt b/libs/yocto_gui/CMakeLists.txt index 9847dabe4..b8b177338 100644 --- a/libs/yocto_gui/CMakeLists.txt +++ b/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