diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-11-11 15:53:54 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-11-11 15:34:43 +0000 |
commit | c92adb199ecdc6632c83df2e32fd90f9c1e9f544 (patch) | |
tree | 2ea24bc31265e2aed0267d1dc47fecf3d0fdf330 /cmake/FindQt5.cmake | |
parent | fd6fe3f4e6d134e0cd2b809bb86024a6d4430e08 (diff) |
cmake build: Map generic IMPORTED_LOCATION for Qt6 tools
There once was a time where the Qt6 build only set
IMPORTED_LOCATION_<CONFIG> but nowadays it also sets
IMPORTED_LOCATION. Use the latter to make it work with both debug
and release builds of Qt6.
Change-Id: Ic8b14209cb97b47eb6136e23390045e115a12ac0
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake/FindQt5.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 f18745e598..2ace18f8eb 100644 --- a/cmake/FindQt5.cmake +++ b/cmake/FindQt5.cmake @@ -69,7 +69,7 @@ set(Qt5_VERSION ${Qt6_VERSION}) foreach(tool qmake lrelease moc rcc qhelpgenerator) 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) + get_target_property(imported_location Qt6::${tool} IMPORTED_LOCATION) set_target_properties(Qt5::${tool} PROPERTIES IMPORTED_LOCATION "${imported_location}") endif() endforeach() |