Fix expanding list-VULKAN_SDK_DIRS on the if

This commit is contained in:
Henrique Gemignani Passos Lima 2021-04-02 20:24:14 +03:00
parent 403291c191
commit da2cf21616
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ if(WINDOWS_STORE)
elseif(WIN32) elseif(WIN32)
unset(VULKAN_SDK_DIRS CACHE) unset(VULKAN_SDK_DIRS CACHE)
get_filename_component(VULKAN_SDK_DIRS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\LunarG\\VulkanSDK;VK_SDK_PATHs]" ABSOLUTE CACHE) get_filename_component(VULKAN_SDK_DIRS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\LunarG\\VulkanSDK;VK_SDK_PATHs]" ABSOLUTE CACHE)
if (NOT ${VULKAN_SDK_DIRS} STREQUAL "/registry") if (NOT "${VULKAN_SDK_DIRS}" STREQUAL "/registry")
message(STATUS "Enabling Vulkan support") message(STATUS "Enabling Vulkan support")
list(GET VULKAN_SDK_DIRS 0 VULKAN_SDK_DIR) list(GET VULKAN_SDK_DIRS 0 VULKAN_SDK_DIR)
target_include_directories(boo PUBLIC "${VULKAN_SDK_DIR}/Include") target_include_directories(boo PUBLIC "${VULKAN_SDK_DIR}/Include")