From 184e9590c3251d583149de02eba1a07e7adeb58c Mon Sep 17 00:00:00 2001 From: Guillaume Pasero <guillaume.pasero@c-s.fr> Date: Thu, 2 Mar 2017 15:58:08 +0100 Subject: [PATCH] BUG: Mantis-1364: mach-o bundle not detected caused missing libraries in package --- SuperBuild/Packaging/PackageMacros.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SuperBuild/Packaging/PackageMacros.cmake b/SuperBuild/Packaging/PackageMacros.cmake index 6a5ac83587..86a2901206 100755 --- a/SuperBuild/Packaging/PackageMacros.cmake +++ b/SuperBuild/Packaging/PackageMacros.cmake @@ -241,6 +241,13 @@ function(is_file_executable2 file_var result_var) return() endif() + # detect shared libraries on Mac OSX + # where "file" gives "Mach-O 64-bit x86_64 bundle" + if("${file_ov}" MATCHES "mach-o.*bundle") + set(${result_var} 1 PARENT_SCOPE) + return() + endif() + endif(APPLE) endfunction() -- GitLab