[libcxx-commits] [pstl] r356900 - [pstl][CMake] Move include() closer to its point of use
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 25 07:45:21 PDT 2019
Author: ldionne
Date: Mon Mar 25 07:45:21 2019
New Revision: 356900
URL: http://llvm.org/viewvc/llvm-project?rev=356900&view=rev
Log:
[pstl][CMake] Move include() closer to its point of use
Modified:
pstl/trunk/CMakeLists.txt
Modified: pstl/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/CMakeLists.txt?rev=356900&r1=356899&r2=356900&view=diff
==============================================================================
--- pstl/trunk/CMakeLists.txt (original)
+++ pstl/trunk/CMakeLists.txt Mon Mar 25 07:45:21 2019
@@ -19,8 +19,6 @@ project(ParallelSTL VERSION ${VERSION_MA
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}
More information about the libcxx-commits
mailing list