diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-10-11 13:39:02 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-10-11 13:40:29 +0200 |
commit | 3507d5afdda882cd3ec80dd4da33f63025ae936b (patch) | |
tree | 932f69e283a4ba8b50295839a6893fd680aeb290 | |
parent | 2a96e374fc83325d01e7ee07801c0e1a45779129 (diff) | |
download | cmake-3507d5afdda882cd3ec80dd4da33f63025ae936b.tar.gz |
Deprecate COMPILE_FLAGS target property.
It is succeeded by COMPILE_OPTIONS, which supports generator
expressions, is a list rather than a string, and is properly
escaped.
-rw-r--r-- | Source/cmTarget.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 1c04e4edf8..a1d9889afe 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -273,7 +273,10 @@ void cmTarget::DefineProperties(cmake *cm) "Additional flags to use when compiling this target's sources.", "The COMPILE_FLAGS property sets additional compiler flags used " "to build sources within the target. Use COMPILE_DEFINITIONS " - "to pass additional preprocessor definitions."); + "to pass additional preprocessor definitions." + "\n" + "This property is deprecated. Use the COMPILE_OPTIONS property or the " + "target_compile_options command instead."); cm->DefineProperty ("COMPILE_DEFINITIONS", cmProperty::TARGET, |