Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/Vulkan-Headers.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@google.com>2022-11-09 00:55:14 +0300
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>2022-11-10 21:30:47 +0300
commit29c0457cc167bfc9e9361a3818440e388986f5b5 (patch)
treeaf1bee2e9cfbdc7100050c330778f3fc02fff79b /CMakeLists.txt
parentf97f29836cb9c8c5657979f1aeac42b46d4e51d0 (diff)
Fix duplicate quotes when targets are included by downstream projectsHEADmain
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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7819608..9d7470c 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 $<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