diff options
author | Brad King <brad.king@kitware.com> | 2013-10-21 15:50:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-22 13:09:52 (GMT) |
commit | 178b9af18674b23be97758236c676c9bd9398c40 (patch) | |
tree | 657c6451d32cc4893b601214066d17512c9a62e9 /Source/cmUtilitySourceCommand.cxx | |
parent | 248d1dc057564dc00e3374d7797a1e42ea57032d (diff) | |
download | CMake-178b9af18674b23be97758236c676c9bd9398c40.zip CMake-178b9af18674b23be97758236c676c9bd9398c40.tar.gz CMake-178b9af18674b23be97758236c676c9bd9398c40.tar.bz2 |
Add policy CMP0034 to disallow utility_source
Diffstat (limited to 'Source/cmUtilitySourceCommand.cxx')
-rw-r--r-- | Source/cmUtilitySourceCommand.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmUtilitySourceCommand.cxx b/Source/cmUtilitySourceCommand.cxx index 6ea3dfa..11e5108 100644 --- a/Source/cmUtilitySourceCommand.cxx +++ b/Source/cmUtilitySourceCommand.cxx @@ -15,6 +15,9 @@ bool cmUtilitySourceCommand ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) { + if(this->Disallowed(cmPolicies::CMP0034, + "The utility_source command should not be called; see CMP0034.")) + { return true; } if(args.size() < 3) { this->SetError("called with incorrect number of arguments"); |