Fix duplicate quotes when targets are included by downstream projects

When trying to update the version of Vulkan-Headers used in Dawn/Tint,
I encountered errors like this:

 Target "Vulkan-Headers" contains relative path in its
  INTERFACE_INCLUDE_DIRECTORIES:

    ""/home/foo/workspace/dawn/third_party/vulkan-deps/vulkan-headers/src/include""

This PR removes the offending quotes
This commit is contained in:
Ryan Harrison 2022-11-08 16:55:14 -05:00 committed by Juan Ramos
parent f97f29836c
commit 29c0457cc1

View file

@ -21,11 +21,11 @@ project(Vulkan-Headers LANGUAGES C VERSION ${VK_VERSION_STRING})
message(STATUS "${PROJECT_NAME} = ${PROJECT_VERSION}")
add_library(Vulkan-Headers INTERFACE)
target_include_directories(Vulkan-Headers INTERFACE $<BUILD_INTERFACE:"${CMAKE_CURRENT_SOURCE_DIR}/include">)
target_include_directories(Vulkan-Headers INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
add_library(Vulkan::Headers ALIAS Vulkan-Headers)
add_library(Vulkan-Registry INTERFACE)
target_include_directories(Vulkan-Registry INTERFACE $<BUILD_INTERFACE:"${CMAKE_CURRENT_SOURCE_DIR}/registry">)
target_include_directories(Vulkan-Registry INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/registry>)
add_library(Vulkan::Registry ALIAS Vulkan-Registry)
# https://cmake.org/cmake/help/latest/variable/PROJECT_IS_TOP_LEVEL.html