2 configure_define(HAVE_TBB)
4 # TBBConfig only sets TBB_FOUND to FALSE
5 check_dependency(LIBTBB tbb)
9 cmake_push_check_state()
10 get_property(LIBTBB_INCLUDEDIR TARGET ${LIBTBB} PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
11 get_property(LIBTBB_LIBRARIES TARGET ${LIBTBB} PROPERTY INTERFACE_LINK_LIBRARIES)
12 set(CMAKE_REQUIRED_INCLUDES "${LIBTBB_INCLUDEDIR}")
13 set(CMAKE_REQUIRED_LIBRARIES "${LIBTBB_LIBRARIES}")
14 set(CMAKE_REQUIRED_FLAGS -std=c++17)
16 check_cxx_include(execution -std=c++17)
18 check_cxx_source_compiles("
23 std::vector<char> a = {1,2,3};
24 std::all_of(std::execution::par, a.begin(), a.end(), [](char i) {
33 cmake_pop_check_state()