Fixed the issue that caused CMake to look a non-existance path

This commit is contained in:
unexploredtest 2021-05-03 15:28:35 +04:30
parent 7c834448b3
commit c2b505c16e

View file

@ -51,12 +51,24 @@ endif()
target_include_directories(
kompute PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/single_include>
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:single_include>
${CMAKE_CURRENT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/single_include
)
# To build the Android example without installing Vulkan Kompute,
# We need to specify the paths for include directories directly
# NOTE: This is a temporary fix
if(KOMPUTE_OPT_ANDOID_BUILD)
target_include_directories(
kompute PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/single_include>
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:single_include>
)
endif()
if(NOT KOMPUTE_OPT_ANDOID_BUILD)
target_link_libraries(
kompute