Fix missing Vulkan loader on MacOS
This commit is contained in:
5
3rdParty/glfw/CMakeLists.txt
vendored
5
3rdParty/glfw/CMakeLists.txt
vendored
@@ -13,5 +13,8 @@ FetchContent_Declare(
|
|||||||
)
|
)
|
||||||
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
||||||
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||||
|
if(APPLE)
|
||||||
|
set(GLFW_VULKAN_STATIC ON CACHE BOOL "" FORCE)
|
||||||
|
endif()
|
||||||
FetchContent_MakeAvailable(glfw)
|
FetchContent_MakeAvailable(glfw)
|
||||||
set(glfw_FOUND ON PARENT_SCOPE)
|
set(glfw_FOUND ON PARENT_SCOPE)
|
||||||
|
|||||||
Reference in New Issue
Block a user