From 3507d5afdda882cd3ec80dd4da33f63025ae936b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Fri, 11 Oct 2013 13:39:02 +0200 Subject: 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. --- Source/cmTarget.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 1c04e4e..a1d9889 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, -- cgit v0.12