tbb/cmake-remove-include-path.patch

30 lines
1.7 KiB
Diff
Raw Normal View History

Index: tbb-2020.0/cmake/templates/TBBConfig.cmake.in
===================================================================
--- tbb-2020.0.orig/cmake/templates/TBBConfig.cmake.in
+++ tbb-2020.0/cmake/templates/TBBConfig.cmake.in
@@ -57,11 +57,6 @@ foreach (_tbb_component ${TBB_FIND_COMPO
if (NOT TARGET TBB::${_tbb_component})
add_library(TBB::${_tbb_component} SHARED IMPORTED)
- get_filename_component(_tbb_include_dir "${CMAKE_CURRENT_LIST_DIR}/@TBB_INC_REL_PATH@" ABSOLUTE)
- set_target_properties(TBB::${_tbb_component} PROPERTIES
- INTERFACE_INCLUDE_DIRECTORIES "${_tbb_include_dir}")
- unset(_tbb_include_dir)
-
if (EXISTS "${_tbb_release_lib}")
set_target_properties(TBB::${_tbb_component} PROPERTIES
IMPORTED_LOCATION_RELEASE "${_tbb_release_lib}"@TBB_IMPLIB_RELEASE@)
Index: tbb-2020.0/cmake/templates/TBBConfigInternal.cmake.in
===================================================================
--- tbb-2020.0.orig/cmake/templates/TBBConfigInternal.cmake.in
+++ tbb-2020.0/cmake/templates/TBBConfigInternal.cmake.in
@@ -57,8 +57,6 @@ foreach (_tbb_component ${TBB_FIND_COMPO
if (EXISTS "${_tbb_release_lib}" OR EXISTS "${_tbb_debug_lib}")
if (NOT TARGET TBB::${_tbb_component})
add_library(TBB::${_tbb_component} SHARED IMPORTED)
- set_target_properties(TBB::${_tbb_component} PROPERTIES
- INTERFACE_INCLUDE_DIRECTORIES "${_tbb_root}/include"@TBB_COMPILE_DEFINITIONS@)
if (EXISTS "${_tbb_release_lib}")
set_target_properties(TBB::${_tbb_component} PROPERTIES