Eliminate build warning with TBB_USE_CAPTURED_EXCEPTION

also make small adjustment on wxWidgets detection on Unix.
This commit is contained in:
tamasmeszaros 2018-12-14 13:45:58 +01:00
parent 48a94ebae1
commit 2be23c8b14
2 changed files with 13 additions and 2 deletions

View file

@ -68,7 +68,7 @@ if(TBB_FOUND)
target_compile_definitions(libnest2d INTERFACE -D__TBB_NO_IMPLICIT_LINKAGE)
endif()
# The Intel TBB library will use the std::exception_ptr feature of C++11.
target_compile_definitions(libnest2d INTERFACE -DTBB_USE_CAPTURED_EXCEPTION=1)
target_compile_definitions(libnest2d INTERFACE -DTBB_USE_CAPTURED_EXCEPTION=0)
target_link_libraries(libnest2d INTERFACE tbb)
else()