diff options
author | Louis Dionne <ldionne@apple.com> | 2019-03-25 14:45:21 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-03-25 14:45:21 +0000 |
commit | e808befa0ec79bf31ba522914289774070b70e48 (patch) | |
tree | abe2b941334bdd888cd44bd6ed0823076b42422b /pstl/CMakeLists.txt | |
parent | 0e75e21eb3859387e7c9f1c8968b20d8bbab5a56 (diff) | |
download | llvm-e808befa0ec79bf31ba522914289774070b70e48.zip llvm-e808befa0ec79bf31ba522914289774070b70e48.tar.gz llvm-e808befa0ec79bf31ba522914289774070b70e48.tar.bz2 |
[pstl][CMake] Move include() closer to its point of use
llvm-svn: 356900
Diffstat (limited to 'pstl/CMakeLists.txt')
-rw-r--r-- | pstl/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pstl/CMakeLists.txt b/pstl/CMakeLists.txt index 975ec95..47fcab2 100644 --- a/pstl/CMakeLists.txt +++ b/pstl/CMakeLists.txt @@ -19,8 +19,6 @@ project(ParallelSTL VERSION ${VERSION_MAJOR}.${VERSION_MINOR} LANGUAGES CXX) option(PARALLELSTL_USE_PARALLEL_POLICIES "Enable parallel policies" OFF) set(PARALLELSTL_BACKEND "tbb" CACHE STRING "Threading backend; defaults to TBB") -include(CMakePackageConfigHelpers) - if (NOT TBB_DIR) get_filename_component(PSTL_DIR_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME) string(REPLACE pstl tbb TBB_DIR_NAME ${PSTL_DIR_NAME}) @@ -54,6 +52,7 @@ target_include_directories(ParallelSTL $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>) +include(CMakePackageConfigHelpers) write_basic_package_version_file( ${CMAKE_CURRENT_BINARY_DIR}/ParallelSTLConfigVersion.cmake VERSION ${PROJECT_VERSION} |