Skip to content

Commit b6356f9

Browse files
committed
Simplify TBB library linking in core CMake configuration by using ${PPC_TBB_LIB_NAME}.
1 parent ae2f207 commit b6356f9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

modules/core/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ target_link_libraries(${exec_func_lib} PUBLIC ${OpenMP_libomp_LIBRARY} OpenMP::O
5454
add_dependencies(${exec_func_lib} ppc_onetbb)
5555
target_link_directories(${exec_func_lib} PUBLIC ${CMAKE_BINARY_DIR}/ppc_onetbb/install/lib)
5656
if(NOT MSVC)
57-
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
58-
target_link_libraries(${exec_func_lib} PUBLIC tbb_debug)
59-
else()
60-
target_link_libraries(${exec_func_lib} PUBLIC tbb)
61-
endif()
57+
target_link_libraries(${exec_func_lib} PUBLIC ${PPC_TBB_LIB_NAME})
6258
endif()
6359

6460
find_package(MPI REQUIRED)

0 commit comments

Comments
 (0)