[pstl] Require C++17 when linking against pstl
authorLouis Dionne <ldionne@apple.com>
Wed, 3 Apr 2019 17:17:40 +0000 (17:17 +0000)
committerLouis Dionne <ldionne@apple.com>
Wed, 3 Apr 2019 17:17:40 +0000 (17:17 +0000)
llvm-svn: 357609

pstl/CMakeLists.txt

index bbfac36..09094d4 100644 (file)
@@ -29,6 +29,7 @@ endif()
 
 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")