From f6042b257d33a760cbb6bb80340c98271680c6b5 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Tue, 28 Apr 2020 22:29:29 +0200 Subject: 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 --- cmake/FindQt5.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/FindQt5.cmake b/cmake/FindQt5.cmake index 762ec8810c8..304c3fc07d3 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) -- cgit v1.2.3