Set CMAKE_<LANG>_FLAGS in PARENT_SCOPE as well
Previously, we were not setting the CMAKE_<LANG>_FLAGS, instead we were only processing the CMAKE_<LANG>_FLAGS_<CONFIG>. This patch amends that so we also update the default flags list as well. Pick-to: 6.5 Change-Id: I7ceb87850a806fe8ad4eac6f8147b312eba01bc6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
c06bdc316f
commit
63a0f4dc3b
@ -994,13 +994,21 @@ function(qt_internal_set_up_config_optimizations_like_in_qmake)
|
||||
endif()
|
||||
|
||||
# Update all relevant flags in the calling scope
|
||||
foreach(config ${configs})
|
||||
foreach(lang ${enabled_languages})
|
||||
foreach(lang ${enabled_languages})
|
||||
set(flag_var_name "CMAKE_${lang}_FLAGS")
|
||||
set(${flag_var_name} "${${flag_var_name}}" PARENT_SCOPE)
|
||||
|
||||
foreach(config ${configs})
|
||||
set(flag_var_name "CMAKE_${lang}_FLAGS_${config}")
|
||||
set(${flag_var_name} "${${flag_var_name}}" PARENT_SCOPE)
|
||||
endforeach()
|
||||
endforeach()
|
||||
|
||||
foreach(t ${target_link_types})
|
||||
foreach(t ${target_link_types})
|
||||
set(flag_var_name "CMAKE_${t}_LINKER_FLAGS")
|
||||
set(${flag_var_name} "${${flag_var_name}}" PARENT_SCOPE)
|
||||
|
||||
foreach(config ${configs})
|
||||
set(flag_var_name "CMAKE_${t}_LINKER_FLAGS_${config}")
|
||||
set(${flag_var_name} "${${flag_var_name}}" PARENT_SCOPE)
|
||||
endforeach()
|
||||
|
Loading…
Reference in New Issue
Block a user