From 6b56fddef87397af6b085a6aca15f2d78f158a1b Mon Sep 17 00:00:00 2001 From: ItsBasi <5033630+ItsBasi@users.noreply.github.com> Date: Thu, 16 Sep 2021 00:37:50 +0200 Subject: [PATCH] Remove nonexisting "single_include" from INSTALL_INTERFACE CMake considers it an error that the target kompute::kompute references the "single_include" folder which is actually installed to "include". CMakeLists.txt:-1: error: Imported target "kompute::kompute" includes non-existent path "D:/Downloads/kompute-0.8.0/build/install/single_include" in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include: * The path was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and references files it does not provide. Signed-off-by: ItsBasi <5033630+ItsBasi@users.noreply.github.com> --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1d714110d..9747694fe 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -54,8 +54,6 @@ target_include_directories( kompute PUBLIC $ $ - $ - $ ) if(NOT KOMPUTE_OPT_ANDROID_BUILD) @@ -151,6 +149,8 @@ if(KOMPUTE_OPT_INSTALL) ARCHIVE DESTINATION lib INCLUDES DESTINATION include) + target_include_directories(kompute PUBLIC $) + install(DIRECTORY include/ DESTINATION include) install(DIRECTORY ${PROJECT_SOURCE_DIR}/single_include/