Fix embedder glfw examples cmake subdirectory path error (flutter/engine#48013)

Fix just a cmake glfw subdirectory path error in embedder examples.

Fix: https://github.com/flutter/flutter/issues/138340
This commit is contained in:
sunhongjie
2023-11-21 06:18:37 +08:00
committed by GitHub
parent 93104224e3
commit 13f3bd212b
3 changed files with 5 additions and 5 deletions

View File

@@ -12,9 +12,9 @@ option(GLFW_BUILD_EXAMPLES "" OFF)
option(GLFW_BUILD_TESTS "" OFF)
option(GLFW_BUILD_DOCS "" OFF)
option(GLFW_INSTALL "" OFF)
add_subdirectory(${CMAKE_SOURCE_DIR}/../../../third_party/glfw glfw)
add_subdirectory(${CMAKE_SOURCE_DIR}/../../third_party/glfw glfw)
target_link_libraries(flutter_glfw glfw)
include_directories(${CMAKE_SOURCE_DIR}/../../../third_party/glfw/include)
include_directories(${CMAKE_SOURCE_DIR}/../../third_party/glfw/include)
############################################################
# Flutter Engine

View File

@@ -13,9 +13,9 @@ option(GLFW_BUILD_DOCS "" OFF)
option(GLFW_INSTALL "" OFF)
find_package(OpenGL REQUIRED COMPONENTS EGL)
include_directories(${OPENGL_INCLUDE_DIRS})
add_subdirectory(${CMAKE_SOURCE_DIR}/../../../third_party/glfw glfw)
add_subdirectory(${CMAKE_SOURCE_DIR}/../../third_party/glfw glfw)
target_link_libraries(flutter_glfw glfw OpenGL::EGL)
include_directories(${CMAKE_SOURCE_DIR}/../../../third_party/glfw/include)
include_directories(${CMAKE_SOURCE_DIR}/../../third_party/glfw/include)
############################################################
# Flutter Engine

View File

@@ -30,7 +30,7 @@ target_link_libraries(${EXE_NAME} PRIVATE Vulkan::Vulkan)
# Dependency: GLFW
set(GLFW_REPOSITORY ${CMAKE_SOURCE_DIR}/../../../third_party/glfw)
set(GLFW_REPOSITORY ${CMAKE_SOURCE_DIR}/../../third_party/glfw)
set(BUILD_SHARED_LIBS OFF)
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)