diff options
author | Louis Dionne <ldionne@apple.com> | 2019-04-09 18:35:56 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-04-09 18:35:56 +0000 |
commit | f7433f9623533d7901fa1f0eb3bf0aaebbbbd73d (patch) | |
tree | eed63bb2db0d3933a8326b8de13821df291fb522 /pstl/cmake | |
parent | 61e77b11d1bf0fa02cfce416c56e6a598619d8db (diff) | |
download | llvm-f7433f9623533d7901fa1f0eb3bf0aaebbbbd73d.tar.gz |
[pstl][CMake] Install CMake export files
This allows other projects to depend on PSTL using the classic CMake
find_package protocol.
llvm-svn: 358028
Diffstat (limited to 'pstl/cmake')
-rw-r--r-- | pstl/cmake/ParallelSTLConfig.cmake.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pstl/cmake/ParallelSTLConfig.cmake.in b/pstl/cmake/ParallelSTLConfig.cmake.in index 5beb8f2ec474..516c8122b44b 100644 --- a/pstl/cmake/ParallelSTLConfig.cmake.in +++ b/pstl/cmake/ParallelSTLConfig.cmake.in @@ -10,8 +10,10 @@ include(CMakeFindDependencyMacro) set(PARALLELSTL_BACKEND "@PARALLELSTL_BACKEND@") -if(PARALLELSTL_BACKEND STREQUAL "tbb") - find_dependency(TBB 2018 REQUIRED tbb) +if (PARALLELSTL_BACKEND STREQUAL "tbb") + find_dependency(TBB REQUIRED tbb) endif() -include("${CMAKE_CURRENT_LIST_DIR}/ParallelSTLTargets.cmake") +if (NOT TARGET pstl::ParallelSTL) + include("${CMAKE_CURRENT_LIST_DIR}/ParallelSTLTargets.cmake") +endif() |