Fixed TBBBind_2.4 usage for RelWithDebInfo (#5535)

This commit is contained in:
Ilya Lavrenov 2021-05-06 21:21:23 +03:00 committed by GitHub
parent a8b5f1f4a3
commit a8289b58c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,11 @@ if(THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO")
find_package(TBBBIND_2_4 QUIET)
if (TBBBIND_2_4_FOUND)
message(STATUS "Static tbbbind_2_4 package was found")
# WA: need to update TBBBind_2_4 package
set_target_properties(TBBbind::tbbbind_2_4 PROPERTIES
MAP_IMPORTED_CONFIG_MINSIZEREL Release
MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release)
endif()
endif()