Skip to content

Commit

Permalink
[CMake] enable CMP0147 policy if available (llvm#109150)
Browse files Browse the repository at this point in the history
Closes llvm#38383.

This enables parallel custom build commands, which improve compilation
time on Windows with Visual Studio.
  • Loading branch information
c8ef authored Sep 24, 2024
1 parent 4911235 commit cf9fc5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/Modules/CMakePolicy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ endif()
if(POLICY CMP0144)
cmake_policy(SET CMP0144 NEW)
endif()

# CMP0147: Visual Studio Generators build custom commands in parallel.
# New in CMake 3.27: https://cmake.org/cmake/help/latest/policy/CMP0147.html
if(POLICY CMP0147)
cmake_policy(SET CMP0147 NEW)
endif()

0 comments on commit cf9fc5e

Please sign in to comment.