mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
proposed change by psyill
This commit is contained in:
parent
190d00ea3e
commit
274b361ca3
8
3rdparty/tbb/CMakeLists.txt
vendored
8
3rdparty/tbb/CMakeLists.txt
vendored
@ -212,7 +212,13 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations)
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations)
|
||||||
string(REPLACE "-Werror=non-virtual-dtor" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
||||||
|
# filter out flags that are not handled well by the TBB code
|
||||||
|
foreach(var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG)
|
||||||
|
string(REPLACE "-Werror=non-virtual-dtor" "" ${var} "${${var}}")
|
||||||
|
string(REPLACE "-fvisibility=hidden" "" ${var} "${${var}}")
|
||||||
|
string(REPLACE "-fvisibility-inlines-hidden" "" ${var} "${${var}}")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(tbb_debug_postfix "_debug") # to fit pragmas in _windef.h inside TBB
|
set(tbb_debug_postfix "_debug") # to fit pragmas in _windef.h inside TBB
|
||||||
|
Loading…
Reference in New Issue
Block a user