From: Michael Wallner Date: Fri, 11 Dec 2020 18:58:01 +0000 (+0100) Subject: tbb: fix import lib X-Git-Tag: 1.1.0-beta1~67 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=514c87afb7e485bc51f2d9c8cb67993486261c47;p=awesomized%2Flibmemcached tbb: fix import lib --- diff --git a/CMake/CheckCpp17Parallelism.cmake b/CMake/CheckCpp17Parallelism.cmake index cc3f0d2a..8cb4a0a7 100644 --- a/CMake/CheckCpp17Parallelism.cmake +++ b/CMake/CheckCpp17Parallelism.cmake @@ -25,6 +25,7 @@ else() include(CheckTbb) set(HAVE_CPP17_PARALLELISM "${HAVE_TBB}") if(HAVE_TBB) - add_library(cpp17::parallelism ALIAS "${LIBTBB}") + add_library(cpp17::parallelism INTERFACE IMPORTED) + target_link_libraries(cpp17::parallelism INTERFACE "${LIBTBB}") endif() endif()