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

Commit

Permalink
Fix embedder glfw examples cmake subdirectory path error (#48013)
Browse files Browse the repository at this point in the history
Fix just a cmake glfw subdirectory path error in embedder examples.

Fix: flutter/flutter#138340
  • Loading branch information
hongeSunCoder authored Nov 20, 2023
1 parent 6e8e55e commit 97cf063
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/glfw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/glfw_drm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/vulkan_glfw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 97cf063

Please sign in to comment.