[pstl] Require C++17 when linking against pstl

llvm-svn: 357609
GitOrigin-RevId: 540e18ded758f4f659d7af1b61d4c5f75111bf8e
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbfac36..09094d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,6 +29,7 @@
 
 add_library(ParallelSTL INTERFACE)
 add_library(pstl::ParallelSTL ALIAS ParallelSTL)
+target_compile_features(ParallelSTL INTERFACE cxx_std_17)
 
 if (PARALLELSTL_USE_PARALLEL_POLICIES)
     message(STATUS "Using Parallel Policies")