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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user