Apply CMake format
This commit is contained in:
parent
5960c21558
commit
4cadb04b44
|
@ -10,7 +10,7 @@ set(META_APP_DESCRIPTION
|
||||||
"Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models")
|
"Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models")
|
||||||
set(META_VERSION_MAJOR 6)
|
set(META_VERSION_MAJOR 6)
|
||||||
set(META_VERSION_MINOR 3)
|
set(META_VERSION_MINOR 3)
|
||||||
set(META_VERSION_PATCH 3)
|
set(META_VERSION_PATCH 4)
|
||||||
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
|
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
|
||||||
|
|
||||||
project(${META_PROJECT_NAME})
|
project(${META_PROJECT_NAME})
|
||||||
|
|
|
@ -303,16 +303,13 @@ if (ENABLE_QT_TRANSLATIONS AND TS_FILES)
|
||||||
if (NOT "${${QT_LINGUIST_TOOLS_PACKAGE}_FOUND}" AND QT_HOST_PATH)
|
if (NOT "${${QT_LINGUIST_TOOLS_PACKAGE}_FOUND}" AND QT_HOST_PATH)
|
||||||
# find the module within the host path when set (required for cross compilation with Qt 6 as the module is absent in
|
# find the module within the host path when set (required for cross compilation with Qt 6 as the module is absent in
|
||||||
# the target install tree)
|
# the target install tree)
|
||||||
find_package(
|
find_package("${QT_LINGUIST_TOOLS_PACKAGE}" PATHS "${QT_HOST_PATH}" "${QT_HOST_PATH}/lib/cmake"
|
||||||
"${QT_LINGUIST_TOOLS_PACKAGE}"
|
NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH)
|
||||||
PATHS
|
|
||||||
"${QT_HOST_PATH}"
|
|
||||||
"${QT_HOST_PATH}/lib/cmake"
|
|
||||||
NO_CMAKE_FIND_ROOT_PATH
|
|
||||||
NO_DEFAULT_PATH)
|
|
||||||
endif ()
|
endif ()
|
||||||
if (NOT "${${QT_LINGUIST_TOOLS_PACKAGE}_FOUND}")
|
if (NOT "${${QT_LINGUIST_TOOLS_PACKAGE}_FOUND}")
|
||||||
message(FATAL_ERROR "Qt translations are enabled but the CMake module \"${QT_LINGUIST_TOOLS_PACKAGE}\" could not be found.")
|
message(
|
||||||
|
FATAL_ERROR
|
||||||
|
"Qt translations are enabled but the CMake module \"${QT_LINGUIST_TOOLS_PACKAGE}\" could not be found.")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (NOT COMMAND qt_create_translation)
|
if (NOT COMMAND qt_create_translation)
|
||||||
|
|
Loading…
Reference in New Issue