set TBB default to Release unless TBB_USE_DEBUG_BUILD is set
parent
3d629290ee
commit
79305fc497
|
@ -99,11 +99,8 @@ if(NOT TBB_FOUND)
|
||||||
##################################
|
##################################
|
||||||
|
|
||||||
if(NOT DEFINED TBB_USE_DEBUG_BUILD)
|
if(NOT DEFINED TBB_USE_DEBUG_BUILD)
|
||||||
if(CMAKE_BUILD_TYPE MATCHES "(Debug|DEBUG|debug|RelWithDebInfo|RELWITHDEBINFO|relwithdebinfo)")
|
# Set build type to RELEASE by default for optimization.
|
||||||
set(TBB_BUILD_TYPE DEBUG)
|
set(TBB_BUILD_TYPE RELEASE)
|
||||||
else()
|
|
||||||
set(TBB_BUILD_TYPE RELEASE)
|
|
||||||
endif()
|
|
||||||
elseif(TBB_USE_DEBUG_BUILD)
|
elseif(TBB_USE_DEBUG_BUILD)
|
||||||
set(TBB_BUILD_TYPE DEBUG)
|
set(TBB_BUILD_TYPE DEBUG)
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in New Issue