[CMake] Make omitting CMAKE_BUILD_TYPE an error
[llvm-project.git] / pstl / cmake / ParallelSTLConfig.cmake.in
blob445ebafce921ba09e19ea0469f63abf709b23363
1 #===-- ParallelSTLConfig.cmake.in ----------------------------------------===##
3 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 # See https://llvm.org/LICENSE.txt for license information.
5 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 #===----------------------------------------------------------------------===##
9 include(CMakeFindDependencyMacro)
11 set(PSTL_PARALLEL_BACKEND "@PSTL_PARALLEL_BACKEND@")
13 if (PSTL_PARALLEL_BACKEND STREQUAL "tbb")
14     find_dependency(TBB REQUIRED tbb)
15 endif()
17 if (NOT TARGET pstl::ParallelSTL)
18     include("${CMAKE_CURRENT_LIST_DIR}/ParallelSTLTargets.cmake")
19 endif()