summaryrefslogtreecommitdiffstats
path: root/cmake/GetPrerequisites.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/GetPrerequisites.cmake')
-rw-r--r--cmake/GetPrerequisites.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/GetPrerequisites.cmake b/cmake/GetPrerequisites.cmake
index d782ced9..39c2cc63 100644
--- a/cmake/GetPrerequisites.cmake
+++ b/cmake/GetPrerequisites.cmake
@@ -205,6 +205,13 @@ function(is_file_executable file result_var)
return()
endif()
+ # "file" version 5.22 does not print "(used shared libraries)"
+ # but uses "interpreter"
+ if("${file_ov}" MATCHES "shared object.*interpreter")
+ set(${result_var} 1 PARENT_SCOPE)
+ return()
+ endif()
+
else()
message(STATUS "warning: No 'file' command, skipping execute_process...")
endif()