Merge topic 'GetPrerequisites-file-command-update'

fe558718 GetPrerequisites: Update output matching for newer 'file' versions
This commit is contained in:
Brad King 2015-02-24 09:12:37 -05:00 committed by CMake Topic Stage
commit 91234717f7
1 changed files with 7 additions and 0 deletions

View File

@ -260,6 +260,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()