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👎 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>
This commit is contained in:
ItsBasi 2021-09-16 00:37:50 +02:00
parent 698001b8a0
commit 6b56fddef8

View file

@ -54,8 +54,6 @@ 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>
)
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_INTERFACE:include>)
install(DIRECTORY include/ DESTINATION include)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/single_include/