[pstl] Fix CMake configuration when parallel policies are disabled
authorLouis Dionne <ldionne@apple.com>
Thu, 10 Jan 2019 11:17:26 +0000 (11:17 +0000)
committerLouis Dionne <ldionne@apple.com>
Thu, 10 Jan 2019 11:17:26 +0000 (11:17 +0000)
llvm-svn: 350812

pstl/CMakeLists.txt

index c29941c..25df74f 100644 (file)
@@ -47,7 +47,7 @@ if (PARALLELSTL_USE_PARALLEL_POLICIES)
         endif()
     endif()
 else()
-    target_add_definitions(ParallelSTL INTERFACE PSTL_USE_PARALLEL_POLICIES=0)
+    target_compile_definitions(ParallelSTL INTERFACE PSTL_USE_PARALLEL_POLICIES=0)
 endif()
 
 target_include_directories(ParallelSTL