summaryrefslogtreecommitdiffstats
path: root/src/corelib/Qt6CoreMacros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/Qt6CoreMacros.cmake')
-rw-r--r--src/corelib/Qt6CoreMacros.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake
index baf8fcb5784..bb7df5ed46a 100644
--- a/src/corelib/Qt6CoreMacros.cmake
+++ b/src/corelib/Qt6CoreMacros.cmake
@@ -2518,8 +2518,10 @@ function(_qt_internal_setup_deploy_support)
if(QT_DEPLOY_USE_PATCHELF)
find_program(QT_DEPLOY_PATCHELF_EXECUTABLE patchelf)
if(NOT QT_DEPLOY_PATCHELF_EXECUTABLE)
- message(FATAL_ERROR "The patchelf executable could not be located. "
- "Please install patchelf or upgrade CMake to 3.21 or newer.")
+ set(QT_DEPLOY_PATCHELF_EXECUTABLE "patchelf")
+ message(WARNING "The patchelf executable could not be located. "
+ "To use Qt's CMake deployment API, install patchelf or upgrade CMake to 3.21 "
+ "or newer.")
endif()
endif()
endif()