Fix non-special target LTO condition
There was a missing $ sign resulting in the condition always being true While there, deduplicate the false value
This commit is contained in:
parent
6b0eeb2c15
commit
02e600c6f3
1 changed files with 3 additions and 1 deletions
|
|
@ -66,7 +66,9 @@ if (NOT DESKTOP_APP_USE_PACKAGED)
|
|||
)
|
||||
endif()
|
||||
set(interprocedural_optimization_config $<TARGET_PROPERTY:INTERPROCEDURAL_OPTIMIZATION_$<UPPER_CASE:$<CONFIG>>>)
|
||||
set(interprocedural_optimization_values -fwhole-program,$<IF:$<BOOL:{DESKTOP_APP_SPECIAL_TARGET}>,$<$<CONFIG:Debug>:-fno-use-linker-plugin>,-fno-use-linker-plugin>)
|
||||
set(interprocedural_optimization_value_on -fwhole-program)
|
||||
set(interprocedural_optimization_value_off -fno-use-linker-plugin)
|
||||
set(interprocedural_optimization_values ${interprocedural_optimization_value_on},$<$<OR:$<NOT:$<BOOL:${DESKTOP_APP_SPECIAL_TARGET}>>,$<CONFIG:Debug>>:${interprocedural_optimization_value_off}>)
|
||||
target_link_options(common_options
|
||||
INTERFACE
|
||||
$<IF:$<NOT:$<STREQUAL:${interprocedural_optimization_config},>>,$<IF:$<BOOL:${interprocedural_optimization_config}>,${interprocedural_optimization_values}>,$<IF:$<BOOL:$<TARGET_PROPERTY:INTERPROCEDURAL_OPTIMIZATION>>,${interprocedural_optimization_values}>>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue