1COMPILE_FLAGS 2------------- 3 4Additional flags to be added when compiling this source file. 5 6The ``COMPILE_FLAGS`` property, managed as a string, sets additional compiler 7flags used that will be added to the list of compile flags when this source 8file builds. The flags will be added after target-wide flags (except in 9some cases not supported by the :generator:`Visual Studio 9 2008` generator). 10 11Use :prop_sf:`COMPILE_DEFINITIONS` to pass additional preprocessor definitions. 12 13Contents of ``COMPILE_FLAGS`` may use "generator expressions" 14with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` 15manual for available expressions. However, :generator:`Xcode` 16does not support per-config per-source settings, so expressions 17that depend on the build configuration are not allowed with that 18generator. 19 20.. note:: 21 22 This property has been superseded by the :prop_sf:`COMPILE_OPTIONS` property. 23