From f22cdac76d5cebe4fe354114d6f48861bab477dd Mon Sep 17 00:00:00 2001 From: Nuno Subtil Date: Thu, 7 Feb 2019 20:53:48 -0800 Subject: [PATCH] build: Use Vulkan::Headers target for include paths Change-Id: If693b2234d67f90c2e62a0706bac7c4b0e424f4c --- loader/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt index bedf8a1c8..da077d9b3 100644 --- a/loader/CMakeLists.txt +++ b/loader/CMakeLists.txt @@ -186,10 +186,11 @@ if(WIN32) add_dependencies(loader-norm generate_helper_files loader_gen_files) target_compile_options(loader-norm PUBLIC "$<$:${LOCAL_C_FLAGS_DBG}>") target_compile_options(loader-norm PUBLIC ${MSVC_LOADER_COMPILE_OPTIONS}) - target_include_directories(loader-norm PRIVATE "$") + target_link_libraries(loader-norm Vulkan::Headers) add_library(loader-opt OBJECT ${OPT_LOADER_SRCS}) add_dependencies(loader-opt generate_helper_files loader_gen_files loader_asm_gen_files) + target_link_libraries(loader-opt Vulkan::Headers) target_compile_options(loader-opt PUBLIC "$<$:${LOCAL_C_FLAGS_REL}>") target_compile_options(loader-opt PUBLIC ${MSVC_LOADER_COMPILE_OPTIONS}) target_include_directories(loader-opt PRIVATE "$")