tbb/cmake-remove-include-path.patch
Ismail Dönmez 686e0f88bd - Add cmake-remove-include-path.patch to remove setting include
path since we already install under /usr/include and this fixes
  idiot OpenCV trying to do -isystem $TBB_INCLUDE_DIR

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=57
2019-06-07 10:46:28 +00:00

27 lines
1.5 KiB
Diff

Index: tbb-2019_U8/cmake/templates/TBBConfig.cmake.in
===================================================================
--- tbb-2019_U8.orig/cmake/templates/TBBConfig.cmake.in
+++ tbb-2019_U8/cmake/templates/TBBConfig.cmake.in
@@ -60,8 +60,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 "${CMAKE_CURRENT_LIST_DIR}/@TBB_INC_REL_PATH@")
if (EXISTS "${_tbb_release_lib}")
set_target_properties(TBB::${_tbb_component} PROPERTIES
Index: tbb-2019_U8/cmake/templates/TBBConfigInternal.cmake.in
===================================================================
--- tbb-2019_U8.orig/cmake/templates/TBBConfigInternal.cmake.in
+++ tbb-2019_U8/cmake/templates/TBBConfigInternal.cmake.in
@@ -43,8 +43,6 @@ foreach (_tbb_component ${TBB_FIND_COMPO
if (EXISTS "${_tbb_release_lib}" OR EXISTS "${_tbb_debug_lib}")
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