mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 04:43:22 -05:00
cmake scripts are updated to prefer includes from the OpenCV source tree
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
if(ANDROID)
|
||||
add_subdirectory("${OpenCV_SOURCE_DIR}/3rdparty/tbb")
|
||||
include_directories(${TBB_INCLUDE_DIRS})
|
||||
ocv_include_directories(${TBB_INCLUDE_DIRS})
|
||||
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} tbb)
|
||||
add_definitions(-DTBB_USE_GCC_BUILTINS=1 -D__TBB_GCC_BUILTIN_ATOMICS_PRESENT=1 -D__TBB_USE_GENERIC_DWORD_LOAD_STORE=1)
|
||||
set(HAVE_TBB 1)
|
||||
@@ -10,7 +10,7 @@ elseif(UNIX AND NOT APPLE)
|
||||
if(TBB_FOUND)
|
||||
set(HAVE_TBB 1)
|
||||
if(NOT ${TBB_INCLUDE_DIRS} STREQUAL "")
|
||||
include_directories(${TBB_INCLUDE_DIRS})
|
||||
ocv_include_directories(${TBB_INCLUDE_DIRS})
|
||||
endif()
|
||||
link_directories(${TBB_LIBRARY_DIRS})
|
||||
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} ${TBB_LIBRARIES})
|
||||
@@ -63,7 +63,7 @@ if(NOT HAVE_TBB)
|
||||
|
||||
set(HAVE_TBB 1)
|
||||
if(NOT "${TBB_INCLUDE_DIR}" STREQUAL "")
|
||||
include_directories("${TBB_INCLUDE_DIR}")
|
||||
ocv_include_directories("${TBB_INCLUDE_DIR}")
|
||||
endif()
|
||||
endif(TBB_INCLUDE_DIR)
|
||||
endif(NOT HAVE_TBB)
|
||||
|
||||
Reference in New Issue
Block a user