justusc / findtbb Goto Github PK
View Code? Open in Web Editor NEWCMake find module for Intel Threading Building Blocks
License: MIT License
CMake find module for Intel Threading Building Blocks
License: MIT License
CMake Error at C:/Users/user/Documents/github/FindTBB-master/FindTBB.cmake:187 (file):
file failed to open for reading (No such file or directory):
C:/Users/user/Documents/github/oneapi-tbb-2021.1.1/include/tbb/tbb_stddef.h
Call Stack (most recent call first):
CMakeLists.txt:39 (find_package)
When I try to use TBB with my CMake project like this:
list(APPEND CMAKE_MODULE_PATH "<path to FindTBB module>")
find_package(TBB REQUIRED)
add_executable(myapp myapp.cc)
target_link_libraries(myapp tbb)
It in the end tries to link tbb-NOTFOUND.obj
(which of course fails).
Did you test this with a Windows environment?
I just ran into a problem using the FindTBB tbb target. When I put tbb into the target link libraries of my project, I was getting a cmake error (well it was printed out as an error, but the cmake configure step seemed to generate everything) when calling install export. The error said that I was "exporting a target that had a dependency on the tbb target which was not also exported." I think this is because the tbb target is made with an add_library call for a real library rather than an imported library. I made a pull request with changes that made this error/warning go away.
Hi,
Your module seems pretty mature, why not pushing it into the main cmake project? You would get more attention and help for maintenance.
After upgrading my Ubuntu 14 to 16.04 LTS, FindTBB started to output the following error. The libtbb-dev package is installed (apt-get was used for that). Also, I'm using an updated version of FindTBB.cmake.
Could NOT find TBB (missing: TBB_LIBRARIES) (found version "4.4") Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) cmake/FindTBB.cmake:256 (find_package_handle_standard_args) CMakeLists.txt:11 (find_package)
Hello,
What is the expected layout of TBBROOT
. Suppose I installed in
/opt/tbb_install
include/
lib/
then $TBBROOT=/opt/tbb_install
is what should be used. Is this correct?
I'm trying to debug this locally, but the brew
installed TBB is always getting found over the custom one regardless of what TBBROOT
actually is.
Thanks for this great module to find TBB...
TBB_LIBRARIES seems to only contain the debug libs?
TBB FOUND: TRUE
TBB VERSION: 4.4
TBB LIBRARIES: E:/library/development/tbb/tbb44_20160526oss/lib/intel64/vc14/tbb_preview_debug.libE:/library/development/tbb/tbb44_20160526oss/lib/intel64/vc14/tbbmalloc_debug.libE:/library/development/tbb/tbb44_20160526oss/lib/intel64/vc14/tbb_debug.lib
I haven't set to use TBB_USE_DEBUG_BUILD but CMake is configuring a Debug build option (along with Release) and that seems to trigger this conditional to never get to the release built components.
# Set the library to be used for the component
if(NOT TBB_${_comp}_LIBRARY)
if(TBB_USE_DEBUG_BUILD AND TBB_${_comp}_LIBRARY_DEBUG)
set(TBB_${_comp}_LIBRARY "${TBB_${_comp}_LIBRARY_DEBUG}")
elseif(TBB_${_comp}_LIBRARY_RELEASE)
set(TBB_${_comp}_LIBRARY "${TBB_${_comp}_LIBRARY_RELEASE}")
elseif(TBB_${_comp}_LIBRARY_DEBUG)
set(TBB_${_comp}_LIBRARY "${TBB_${_comp}_LIBRARY_DEBUG}")
endif()
endif()
i got this while run
`cmake_minimum_required(VERSION 2.8)
project(MyProject)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules/")
find_package(TBB COMPONENTS tbbmalloc tbbmalloc_proxy tbb_preview)
add_executable(myapp myapp)
target_include_directories(myapp PRIVATE ${TBB_INCLUDE_DIRS})
target_compile_definitions(myapp PRIVATE ${TBB_DEFINITIONS})
target_link_libraries(myapp ${TBB_LIBRARIES})`
this killing my i searched all google no solution
using ubuntu
When using TBB_LIBRARIES
one could simply set TBB_USE_DEBUG_BUILD=off
to prevent linking against TBB debug libraries no matter what CMake configuration is set.
No luck if you want to use the imported target tbb
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.