Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 97cf063

Browse files
Fix embedder glfw examples cmake subdirectory path error (#48013)
Fix just a cmake glfw subdirectory path error in embedder examples. Fix: flutter/flutter#138340
1 parent 6e8e55e commit 97cf063

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/glfw/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ option(GLFW_BUILD_EXAMPLES "" OFF)
1212
option(GLFW_BUILD_TESTS "" OFF)
1313
option(GLFW_BUILD_DOCS "" OFF)
1414
option(GLFW_INSTALL "" OFF)
15-
add_subdirectory(${CMAKE_SOURCE_DIR}/../../../third_party/glfw glfw)
15+
add_subdirectory(${CMAKE_SOURCE_DIR}/../../third_party/glfw glfw)
1616
target_link_libraries(flutter_glfw glfw)
17-
include_directories(${CMAKE_SOURCE_DIR}/../../../third_party/glfw/include)
17+
include_directories(${CMAKE_SOURCE_DIR}/../../third_party/glfw/include)
1818

1919
############################################################
2020
# Flutter Engine

examples/glfw_drm/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ option(GLFW_BUILD_DOCS "" OFF)
1313
option(GLFW_INSTALL "" OFF)
1414
find_package(OpenGL REQUIRED COMPONENTS EGL)
1515
include_directories(${OPENGL_INCLUDE_DIRS})
16-
add_subdirectory(${CMAKE_SOURCE_DIR}/../../../third_party/glfw glfw)
16+
add_subdirectory(${CMAKE_SOURCE_DIR}/../../third_party/glfw glfw)
1717
target_link_libraries(flutter_glfw glfw OpenGL::EGL)
18-
include_directories(${CMAKE_SOURCE_DIR}/../../../third_party/glfw/include)
18+
include_directories(${CMAKE_SOURCE_DIR}/../../third_party/glfw/include)
1919

2020
############################################################
2121
# Flutter Engine

examples/vulkan_glfw/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ target_link_libraries(${EXE_NAME} PRIVATE Vulkan::Vulkan)
3030

3131
# Dependency: GLFW
3232

33-
set(GLFW_REPOSITORY ${CMAKE_SOURCE_DIR}/../../../third_party/glfw)
33+
set(GLFW_REPOSITORY ${CMAKE_SOURCE_DIR}/../../third_party/glfw)
3434

3535
set(BUILD_SHARED_LIBS OFF)
3636
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)

0 commit comments

Comments
 (0)