From c2b505c16ee6b24d9574cff2257adb810c8fb476 Mon Sep 17 00:00:00 2001 From: unexploredtest Date: Mon, 3 May 2021 15:28:35 +0430 Subject: [PATCH] Fixed the issue that caused CMake to look a non-existance path --- src/CMakeLists.txt | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c1ab2d3eb..c8ff2449f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -51,12 +51,24 @@ endif() target_include_directories( kompute PUBLIC - $ - $ - $ - $ + ${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 + $ + $ + $ + $ + ) +endif() + + if(NOT KOMPUTE_OPT_ANDOID_BUILD) target_link_libraries( kompute