CMake/qconfig.cpp: use raw strings so we support any input

Change-Id: I2bbf422288924c198645fffd16aa04379315e69e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Thiago Macieira 2021-10-01 14:07:31 -07:00
parent 0ab3c5c250
commit bcbc36b8bf

View File

@ -17,18 +17,18 @@ endfunction()
function(qt_generate_qconfig_cpp in_file out_file) function(qt_generate_qconfig_cpp in_file out_file)
set(QT_CONFIG_STRS "") set(QT_CONFIG_STRS "")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_DOCDIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_DOCDIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_INCLUDEDIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_INCLUDEDIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_LIBDIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_LIBDIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_LIBEXECDIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_LIBEXECDIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_BINDIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_BINDIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_PLUGINSDIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_PLUGINSDIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_QMLDIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_QMLDIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_ARCHDATADIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_ARCHDATADIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_DATADIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_DATADIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_TRANSLATIONSDIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_TRANSLATIONSDIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_EXAMPLESDIR}\",\n") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_EXAMPLESDIR})qconfig\",\n")
string(APPEND QT_CONFIG_STRS " \"${INSTALL_TESTSDIR}\"") string(APPEND QT_CONFIG_STRS " R\"qconfig(${INSTALL_TESTSDIR})qconfig\"")
# Settings path / sysconf dir. # Settings path / sysconf dir.
set(QT_SYS_CONF_DIR "${INSTALL_SYSCONFDIR}") set(QT_SYS_CONF_DIR "${INSTALL_SYSCONFDIR}")