diff --git a/cmake/platforms/FindIntegrityPlatformGraphics.cmake b/cmake/platforms/FindIntegrityPlatformGraphics.cmake index f210e84674a..87e2af1fb1d 100644 --- a/cmake/platforms/FindIntegrityPlatformGraphics.cmake +++ b/cmake/platforms/FindIntegrityPlatformGraphics.cmake @@ -7,7 +7,9 @@ # Temporary fall back to allow integrating this pachset without the # toolchain file updated. -set(IntegrityPlatformGraphics_REQUIRED_LIBRARIES ${_qt_igy_gui_libs}) +if(NOT IntegrityPlatformGraphics_REQUIRED_LIBRARIES) + set(IntegrityPlatformGraphics_REQUIRED_LIBRARIES ${_qt_igy_gui_libs}) +endif() find_package_handle_standard_args(IntegrityPlatformGraphics FOUND_VAR