From 13f3bd212b15c49309b619b5d95fb1f4b260b717 Mon Sep 17 00:00:00 2001 From: sunhongjie <63278936+hongeSunCoder@users.noreply.github.com> Date: Tue, 21 Nov 2023 06:18:37 +0800 Subject: [PATCH] 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 --- engine/src/flutter/examples/glfw/CMakeLists.txt | 4 ++-- engine/src/flutter/examples/glfw_drm/CMakeLists.txt | 4 ++-- engine/src/flutter/examples/vulkan_glfw/CMakeLists.txt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/src/flutter/examples/glfw/CMakeLists.txt b/engine/src/flutter/examples/glfw/CMakeLists.txt index ec0c0ed11a..336e5943cf 100644 --- a/engine/src/flutter/examples/glfw/CMakeLists.txt +++ b/engine/src/flutter/examples/glfw/CMakeLists.txt @@ -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 diff --git a/engine/src/flutter/examples/glfw_drm/CMakeLists.txt b/engine/src/flutter/examples/glfw_drm/CMakeLists.txt index 2563bd8bee..6ec0cbd2ab 100644 --- a/engine/src/flutter/examples/glfw_drm/CMakeLists.txt +++ b/engine/src/flutter/examples/glfw_drm/CMakeLists.txt @@ -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 diff --git a/engine/src/flutter/examples/vulkan_glfw/CMakeLists.txt b/engine/src/flutter/examples/vulkan_glfw/CMakeLists.txt index e107a37d24..30f0859799 100644 --- a/engine/src/flutter/examples/vulkan_glfw/CMakeLists.txt +++ b/engine/src/flutter/examples/vulkan_glfw/CMakeLists.txt @@ -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)