mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
cmake: fix compilation with Qt 4
In qmake we define QStringLiteral=QLatin1String, so define it in cmake builds too.
This commit is contained in:
parent
d92ef3fa4d
commit
6a3e7a12d8
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ else (QT5)
|
|||
endif (DBUS)
|
||||
find_package(Qt4 4.8.0 COMPONENTS ${QBT_QT_COMPONENTS} REQUIRED)
|
||||
include(${QT_USE_FILE})
|
||||
add_definitions(-DQStringLiteral=QLatin1String)
|
||||
endif (QT5)
|
||||
|
||||
set(CMAKE_AUTOMOC True)
|
||||
|
|
Loading…
Reference in a new issue