diff options
author | Brad King <brad.king@kitware.com> | 2023-03-10 16:47:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-12 11:51:58 (GMT) |
commit | d6353e74b4dc53b98943d5d66ab5ffb0bef04d08 (patch) | |
tree | 34aefc9b5c0bc8cba575968d9a245efd93330e5c /Source/cmPolicies.h | |
parent | 9db40bec4e1004baa8b397c8b52c248d8de71f67 (diff) | |
download | CMake-d6353e74b4dc53b98943d5d66ab5ffb0bef04d08.zip CMake-d6353e74b4dc53b98943d5d66ab5ffb0bef04d08.tar.gz CMake-d6353e74b4dc53b98943d5d66ab5ffb0bef04d08.tar.bz2 |
VS: Add policy to build custom commands concurrently
In commit 33c15ae2b9 (VS: Build custom commands concurrently when
possible, 2023-01-19, v3.26.0-rc1~56^2) we added `BuildInParallel` to
custom commands in `.vcxproj` files, but that had to be reverted by
commit abb1c12162 (VS: Revert "Build custom commands concurrently when
possible", 2023-03-07, v3.26.0-rc6~3^2) because some projects may have
custom commands that accidentally rely on serial execution in MSBuild.
Add a policy to use `BuildInParallel` for custom commands in projects
that have been updated to set the policy to `NEW`.
Fixes: #18405
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index 06ac21e..52993b8 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -441,7 +441,10 @@ class cmMakefile; SELECT(POLICY, CMP0145, "The Dart and FindDart modules are removed.", 3, \ 27, 0, cmPolicies::WARN) \ SELECT(POLICY, CMP0146, "The FindCUDA module is removed.", 3, 27, 0, \ - cmPolicies::WARN) + cmPolicies::WARN) \ + SELECT(POLICY, CMP0147, \ + "Visual Studio generators build custom commands in parallel.", 3, \ + 27, 0, cmPolicies::WARN) #define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1) #define CM_FOR_EACH_POLICY_ID(POLICY) \ @@ -481,7 +484,9 @@ class cmMakefile; F(CMP0131) \ F(CMP0142) -#define CM_FOR_EACH_CUSTOM_COMMAND_POLICY(F) F(CMP0116) +#define CM_FOR_EACH_CUSTOM_COMMAND_POLICY(F) \ + F(CMP0116) \ + F(CMP0147) /** \class cmPolicies * \brief Handles changes in CMake behavior and policies |