Cocoa: Fix FindVulkan.cmake paths for LunarG SDK

Fixes #1278.
This commit is contained in:
Camilla Löwy 2018-05-27 19:31:50 +02:00
parent 617a322bd8
commit bf6551a3ca
2 changed files with 4 additions and 7 deletions

View File

@ -27,11 +27,6 @@ if (WIN32)
"$ENV{VULKAN_SDK}/Bin32"
"$ENV{VK_SDK_PATH}/Bin32")
endif()
elseif (APPLE)
find_library(VULKAN_LIBRARY vulkan.1 HINTS
"$ENV{VULKAN_SDK}/macOS/lib")
find_path(VULKAN_INCLUDE_DIR NAMES vulkan/vulkan.h HINTS
"$ENV{VULKAN_SDK}/macOS/include")
else()
find_path(VULKAN_INCLUDE_DIR NAMES vulkan/vulkan.h HINTS
"$ENV{VULKAN_SDK}/include")

View File

@ -44,12 +44,14 @@ a compile-time error.
@macos Because the Vulkan loader and ICD are not installed globally on macOS,
you need to set up the application bundle according to the LunarG SDK
documentation. To help the GLFW CMake files find the SDK, you can set the
`VULKAN_SDK` environment variable.
`VULKAN_SDK` environment variable to the `macOS` subdirectory of the SDK.
@code{.sh}
env VULKAN_SDK=/example/path/to/vulkansdk-macos cmake .
env VULKAN_SDK=/example/path/to/vulkansdk/macOS cmake .
@endcode
This is explained in more detail in the LunarG Vulkan SDK release notes.
@section vulkan_include Including the Vulkan and GLFW header files