CMake: Write PKG_CONFIG_EXECUTABLE to qmodule.pri

Change-Id: Ide61cc93d44c659740b72d085fb8b15684bc64fa
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2020-04-06 11:37:43 +02:00
parent 59756b7183
commit 9fc13a1188

View File

@ -778,13 +778,19 @@ function(qt_generate_global_module_pri_file)
qt_correct_config(corrected_private_config "${private_config}")
list(JOIN corrected_private_config " " private_config_joined)
file(GENERATE
OUTPUT "${qmodule_pri_target_path}"
CONTENT
"QT.global_private.enabled_features = ${corrected_enabled_features}
set(content "QT.global_private.enabled_features = ${corrected_enabled_features}
QT.global_private.disabled_features = ${corrected_disabled_features}
CONFIG += ${private_config_joined}
"
")
if(PKG_CONFIG_FOUND)
string(APPEND content "PKG_CONFIG_EXECUTABLE = ${PKG_CONFIG_EXECUTABLE}\n")
endif()
# TODO: Write QT_COORD_TYPE once we support setting it.
file(GENERATE
OUTPUT "${qmodule_pri_target_path}"
CONTENT "${content}"
)
qt_install(FILES "${qmodule_pri_target_path}" DESTINATION mkspecs)
endfunction()