Skip to content

Commit

Permalink
build: Use Vulkan::Headers target for include paths
Browse files Browse the repository at this point in the history
Change-Id: If693b2234d67f90c2e62a0706bac7c4b0e424f4c
  • Loading branch information
nsubtil authored and Mike Weiblen committed Apr 18, 2019
1 parent c51f36f commit f22cdac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,11 @@ if(WIN32)
add_dependencies(loader-norm generate_helper_files loader_gen_files)
target_compile_options(loader-norm PUBLIC "$<$<CONFIG:DEBUG>:${LOCAL_C_FLAGS_DBG}>")
target_compile_options(loader-norm PUBLIC ${MSVC_LOADER_COMPILE_OPTIONS})
target_include_directories(loader-norm PRIVATE "$<TARGET_PROPERTY:Vulkan::Headers,INTERFACE_INCLUDE_DIRECTORIES>")
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 "$<$<CONFIG:DEBUG>:${LOCAL_C_FLAGS_REL}>")
target_compile_options(loader-opt PUBLIC ${MSVC_LOADER_COMPILE_OPTIONS})
target_include_directories(loader-opt PRIVATE "$<TARGET_PROPERTY:Vulkan::Headers,INTERFACE_INCLUDE_DIRECTORIES>")
Expand Down

0 comments on commit f22cdac

Please sign in to comment.