forked from pool/cmake
19 lines
666 B
Diff
19 lines
666 B
Diff
|
Index: cmake-3.2.0-rc1/Modules/GetPrerequisites.cmake
|
||
|
===================================================================
|
||
|
--- cmake-3.2.0-rc1.orig/Modules/GetPrerequisites.cmake
|
||
|
+++ cmake-3.2.0-rc1/Modules/GetPrerequisites.cmake
|
||
|
@@ -260,6 +260,13 @@ function(is_file_executable file result_
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
+ # newer file version does not use (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()
|