Skip to content

Commit cf18b3e

Browse files
authored
Simplify and unify TBB build (#631)
Use built-in "TBB_STRICT" variable instead of manual suppressing all warnings
1 parent ca413ed commit cf18b3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmake/onetbb.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ if(NOT ENABLE_SYSTEM_TBB)
2222
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
2323
-DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER}
2424
-DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}
25-
-DCMAKE_C_FLAGS=-w
26-
-DCMAKE_CXX_FLAGS=-w
2725
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}
2826
-DCMAKE_CXX_STANDARD_REQUIRED=ON
2927
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
28+
-DTBB_STRICT=OFF
3029
-DTBB_TEST=OFF
3130
BUILD_COMMAND
3231
"${CMAKE_COMMAND}" --build "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build"

0 commit comments

Comments
 (0)