diff options
author | Cristian Adam <cristian.adam@qt.io> | 2020-04-28 22:29:29 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2020-04-29 08:57:14 +0000 |
commit | f6042b257d33a760cbb6bb80340c98271680c6b5 (patch) | |
tree | d68a2efd9ae7a59aa4afa1fd0aefd638b3f7eff8 /cmake | |
parent | f80715a8caa1ee33d1030f345922dcc7174a06ed (diff) |
CMake Build: Fix for building with Qt6
Qt5: :moc target is being used, and it had no alias.
Change-Id: I1350507b14089d70c64ed6632e6dcce8c4881f0f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindQt5.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindQt5.cmake b/cmake/FindQt5.cmake index 762ec8810c..304c3fc07d 100644 --- a/cmake/FindQt5.cmake +++ b/cmake/FindQt5.cmake @@ -52,7 +52,7 @@ endforeach() set(Qt5_FOUND ${Qt6_FOUND}) -foreach(tool qmake lrelease) +foreach(tool qmake lrelease moc) if (TARGET Qt6::${tool} AND NOT TARGET Qt5::${tool}) add_executable(Qt5::${tool} IMPORTED GLOBAL) get_target_property(imported_location Qt6::${tool} IMPORTED_LOCATION_RELEASE) |