diff options
author | Ryan Harrison <[email protected]> | 2022-11-08 16:55:14 -0500 |
---|---|---|
committer | Juan Ramos <[email protected]> | 2022-11-10 11:30:47 -0700 |
commit | 29c0457cc167bfc9e9361a3818440e388986f5b5 (patch) | |
tree | af1bee2e9cfbdc7100050c330778f3fc02fff79b | |
parent | f97f29836cb9c8c5657979f1aeac42b46d4e51d0 (diff) | |
download | Vulkan-Headers-29c0457cc167bfc9e9361a3818440e388986f5b5.tar.gz Vulkan-Headers-29c0457cc167bfc9e9361a3818440e388986f5b5.zip |
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
-rw-r--r-- | CMakeLists.txt | 4 |
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 |