tbb: fix import lib
authorMichael Wallner <mike@php.net>
Fri, 11 Dec 2020 18:58:01 +0000 (19:58 +0100)
committerMichael Wallner <mike@php.net>
Fri, 11 Dec 2020 18:58:01 +0000 (19:58 +0100)
CMake/CheckCpp17Parallelism.cmake

index cc3f0d2afa1685b2033978f4e9d501e4562e3203..8cb4a0a75eb3790560d0554c09a8bb5d767ed4c5 100644 (file)
@@ -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()