2018-12-20 01:45:32 +08:00
|
|
|
#===-- ParallelSTLConfig.cmake.in ----------------------------------------===##
|
|
|
|
#
|
2019-01-19 18:56:40 +08:00
|
|
|
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
# See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2018-12-20 01:45:32 +08:00
|
|
|
#
|
|
|
|
#===----------------------------------------------------------------------===##
|
|
|
|
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
|
2019-08-13 19:50:26 +08:00
|
|
|
set(PSTL_PARALLEL_BACKEND "@PSTL_PARALLEL_BACKEND@")
|
2018-12-20 01:45:32 +08:00
|
|
|
|
2019-08-13 19:50:26 +08:00
|
|
|
if (PSTL_PARALLEL_BACKEND STREQUAL "tbb")
|
2019-04-10 02:35:56 +08:00
|
|
|
find_dependency(TBB REQUIRED tbb)
|
2018-12-20 01:45:32 +08:00
|
|
|
endif()
|
|
|
|
|
2019-04-10 02:35:56 +08:00
|
|
|
if (NOT TARGET pstl::ParallelSTL)
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/ParallelSTLTargets.cmake")
|
|
|
|
endif()
|