COMPILE_FLAGS¶
編譯此來源檔案時要新增的額外旗標。
以字串管理的 COMPILE_FLAGS 屬性,用於設定在建置此來源檔案時將新增到編譯旗標清單中的額外編譯器旗標。這些旗標將在目標範圍的旗標之後新增。
使用 COMPILE_DEFINITIONS 傳遞額外的預處理器定義。
Contents of COMPILE_FLAGS may use
generator expressions with the
syntax $<...>. However, Xcode does not support per-config
per-source settings, so expressions that depend on the build configuration are
not allowed with that generator.
備註
此屬性已被 COMPILE_OPTIONS 屬性取代。