COMPILE_FLAGS
From Get docs
Cmake/docs/3.21/prop tgt/compile flags
COMPILE_FLAGS
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.
This property is deprecated. Use the COMPILE_OPTIONS property or the target_compile_options() command instead.
© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/prop_tgt/COMPILE_FLAGS.html