mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
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.
This commit is contained in:
1 parent
2a96e374fc
commit
3507d5afdd
1 file changed
+4
-1
+4
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user