diff --git a/src/3d/CMakeLists.txt b/src/3d/CMakeLists.txt index ee4e94d71eb47..f19a94d01cc9e 100644 --- a/src/3d/CMakeLists.txt +++ b/src/3d/CMakeLists.txt @@ -288,11 +288,7 @@ target_include_directories(qgis_3d PUBLIC ${CMAKE_SOURCE_DIR}/external/tinygltf ) -if (BUILD_WITH_QT6) - target_link_libraries(qgis_3d Qt6::3DCore Qt6::3DRender Qt6::3DInput Qt6::3DLogic Qt6::3DExtras) -else() - target_link_libraries(qgis_3d Qt5::3DCore Qt5::3DRender Qt5::3DInput Qt5::3DLogic Qt5::3DExtras) -endif() +target_link_libraries(qgis_3d Qt::3DCore Qt::3DRender Qt::3DInput Qt::3DLogic Qt::3DExtras) GENERATE_EXPORT_HEADER( qgis_3d