You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
959 B
21 lines
959 B
# XDG standards expects system-wide configuration files in the /etc/xdg/lxqt location.
|
|
# Unfortunately QSettings we are using internally can be overriden in the Qt compilation
|
|
# time to use different path for system-wide configs. (for example configure ... -sysconfdir /etc/settings ...)
|
|
# This path can be found calling Qt4's qmake:
|
|
# qmake -query QT_INSTALL_CONFIGURATION
|
|
#
|
|
if(NOT DEFINED LXQT_ETC_XDG_DIR)
|
|
if(NOT QT_QMAKE_EXECUTABLE)
|
|
message(FATAL_ERROR "LXQT_ETC_XDG_DIR: qmake not found or wrongly detected (inlude before qt configured?)")
|
|
endif()
|
|
|
|
execute_process(COMMAND ${QT_QMAKE_EXECUTABLE} -query QT_INSTALL_CONFIGURATION
|
|
OUTPUT_VARIABLE LXQT_ETC_XDG_DIR
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
message(STATUS "LXQT_ETC_XDG_DIR autodetected as '${LXQT_ETC_XDG_DIR}'")
|
|
message(STATUS "You can set it manually with -DLXQT_ETC_XDG_DIR=<value>")
|
|
message(STATUS "")
|
|
endif ()
|
|
|