Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/modules/FindTBB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS (TBB REQUIRED_VARS TBB_ROOT_DIR
${_TBB_FPHSA_ADDITIONAL_ARGS})

if(TBB_FOUND)
add_library(TBB::tbb IMPORTED STATIC GLOBAL)
add_library(TBB::tbb IMPORTED UNKNOWN GLOBAL)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note: this may (or may not) also be beneficial on Windows (CMake documentation says "[using] UNKOWN ... This is especially useful on Windows where a static library and a DLL's import library both have the same file extension.")

set_target_properties(TBB::tbb PROPERTIES
IMPORTED_LOCATION ${TBB_LIBRARY}
INTERFACE_INCLUDE_DIRECTORIES ${TBB_INCLUDE_DIR})
Expand Down
Loading