diff options
author | Brad King <brad.king@kitware.com> | 2020-06-10 10:23:00 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-06-15 11:58:47 -0400 |
commit | 9d45a8be085490a6c3ce4db27968247297a8bdd2 (patch) | |
tree | 6a03a90c1d5b667f0c3541f31eb86ce0ef02c048 /Source/cmPolicies.h | |
parent | 43b10e2411858ae7734c54480a8c0c6c3ccd659b (diff) | |
download | cmake-9d45a8be085490a6c3ce4db27968247297a8bdd2.tar.gz |
find_program: Find programs that are executable but not readable
This fix was first made by commit 86e6349ef7 (find_program: Find
programs that are executable but not readable, 2020-04-04,
v3.18.0-rc1~372^2) but was reverted for compatibility. Re-introduce it
with a policy for compatibility.
Fixes: #10468
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index a82f4211e2..49dadc7ba7 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -320,7 +320,10 @@ class cmMakefile; SELECT(POLICY, CMP0107, "An ALIAS target cannot overwrite another target.", \ 3, 18, 0, cmPolicies::WARN) \ SELECT(POLICY, CMP0108, "A target cannot link to itself through an alias.", \ - 3, 18, 0, cmPolicies::WARN) + 3, 18, 0, cmPolicies::WARN) \ + SELECT(POLICY, CMP0109, \ + "find_program() requires permission to execute but not to read.", 3, \ + 19, 0, cmPolicies::WARN) #define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1) #define CM_FOR_EACH_POLICY_ID(POLICY) \ |