-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README.md with TBB_FIND_PACKAGE variable info #1471
Conversation
cmake/README.md
Outdated
@@ -10,6 +10,7 @@ TBB_SANITIZE:STRING - Sanitizer parameter, passed to compiler/linker | |||
TBB_SIGNTOOL:FILEPATH - Tool for digital signing, used in post-install step for libraries if provided. | |||
TBB_SIGNTOOL_ARGS:STRING - Additional arguments for TBB_SIGNTOOL, used if TBB_SIGNTOOL is set. | |||
TBB_BUILD:BOOL - Enable Intel(R) oneAPI Threading Building Blocks (oneTBB) build (ON by default) | |||
DTBB_FIND_PACKAGE - Enable search for external oneTBB using find_package instead of build from sources (OFF by default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DTBB_FIND_PACKAGE - Enable search for external oneTBB using find_package instead of build from sources (OFF by default) | |
TBB_FIND_PACKAGE - Enable search for external oneTBB using find_package instead of build from sources (OFF by default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the variable.
cmake/README.md
Outdated
1. Set TBB_FIND_PACKAGE=ON | ||
2. Let CMake know where to search for TBBConfig, e.g. specify the location of ``TBBConfig.cmake`` in `TBB_DIR` (for more details about search paths, see [find_package](https://cmake.org/cmake/help/latest/command/find_package.html)). | ||
3. Use [find_package](https://cmake.org/cmake/help/latest/command/find_package.html) to find oneTBB. | ||
4. Use provided variables and/or imported targets (described below) to work with the found oneTBB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the steps for using TBB in different projects using find_package
functionality. No need to update anything here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the Set TBB_FIND_PACKAGE=ON from instructions.
cmake/README.md
Outdated
@@ -268,7 +270,7 @@ Variable | Description | |||
`TBB_IMPORTED_TARGETS` | All created oneTBB imported targets (not supported for builds from source code) | |||
|
|||
Starting from [oneTBB 2021.1](https://github.com/oneapi-src/oneTBB/releases/tag/v2021.1), GitHub* release TBBConfig files in the binary packages are located under `<tbb-root>/lib/cmake/TBB`. | |||
For example, `TBB_DIR` should be set to `<tbb-root>/lib/cmake/TBB`. | |||
For example, 'TBB_FIND_PACKAGE' should be set to ON and `TBB_DIR` should be set to `<tbb-root>/lib/cmake/TBB`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed TBB_FIND_PACKAGE from the instructions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Update README.md with TBB_FIND_PACKAGE variable info
Description
Add a comprehensive description of proposed changes
Fixes # - issue number(s) if exists
Type of change
Choose one or multiple, leave empty if none of the other choices apply
Add a respective label(s) to PR if you have permissions
Tests
Documentation
Breaks backward compatibility
Notify the following users
List users with
@
to send notificationsOther information