From 29c0457cc167bfc9e9361a3818440e388986f5b5 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Tue, 8 Nov 2022 16:55:14 -0500 Subject: [PATCH] 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 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7819608e..9d7470c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 $) +target_include_directories(Vulkan-Headers INTERFACE $) add_library(Vulkan::Headers ALIAS Vulkan-Headers) add_library(Vulkan-Registry INTERFACE) -target_include_directories(Vulkan-Registry INTERFACE $) +target_include_directories(Vulkan-Registry INTERFACE $) add_library(Vulkan::Registry ALIAS Vulkan-Registry) # https://cmake.org/cmake/help/latest/variable/PROJECT_IS_TOP_LEVEL.html