diff options
author | Nicolas Fella <nicolas.fella@gmx.de> | 2021-10-10 23:54:19 +0200 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-01-15 15:51:02 -0500 |
commit | 19e0baaa50deebdfc4368ca0a4216f71b5998bce (patch) | |
tree | 7d4873ec57a42eeedb3da7d6e2dafe7e9485f4d8 | |
parent | 178e51030f91936479d0db7d5a8f46ffd491124b (diff) | |
download | libical-git-19e0baaa50deebdfc4368ca0a4216f71b5998bce.tar.gz |
Add include path to the exported target definition
Otherwise the libical headers are not found by consumers if libical is installed in a non-standard location
-rw-r--r-- | src/libical/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libical/CMakeLists.txt b/src/libical/CMakeLists.txt index 9d8b51ee..47d11309 100644 --- a/src/libical/CMakeLists.txt +++ b/src/libical/CMakeLists.txt @@ -265,6 +265,8 @@ elseif(STATIC_ONLY) add_library(ical-static ALIAS ical) endif() +target_include_directories(ical INTERFACE "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>") + target_link_libraries(ical ${CMAKE_THREAD_LIBS_INIT}) if(ICU_FOUND) |