diff options
-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 975ec952651..47fcab251e9 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} |