Lines Matching refs:flag
1 # In general, a flag is a string provided for supported functions under the
8 # When we create a target `TARGET_NAME` with a flag using (add_header_library,
9 # add_object_library, ...), its behavior will depend on the flag form as follow:
25 # To completely disable a flag FLAG_NAME expansion, set the variable
31 string(REGEX REPLACE "__NO$" "" flag "${input_flag}")
32 set(${output_flag} ${flag} PARENT_SCOPE)
35 string(REGEX REPLACE "__ONLY$" "" flag "${input_flag}")
36 set(${output_flag} ${flag} PARENT_SCOPE)
51 extract_flag_modifier(${input_flag} flag modifier)
53 # Check if the flag is skipped.
54 if(${SKIP_FLAG_EXPANSION_${flag}})
56 message(STATUS " Flag ${flag} is ignored.")
64 if("${flag}" STREQUAL "${o_flag}")
98 foreach(flag IN LISTS flags)
99 if(flag)
100 list(APPEND flag_list ${flag})
110 # Given a `flag` without modifier, scan through the list of dependency, append
111 # `.__NO_flag` to any target that has `flag` in its FLAGS property.
112 function(get_fq_dep_list_without_flag output_list flag)
118 # Only target with `flag` has `.__NO_flag` target, `flag__NO` and
120 if(${flag} IN_LIST dep_flags)
121 list(APPEND fq_dep_no_flag_list "${fq_dep_name}.__NO_${flag}")
136 # Skip FMA_OPT flag for targets that don't support fma.
141 # Skip ROUND_OPT flag for targets that don't support SSE 4.2.